Skip to content

Commit

Permalink
deprecate preload_pool_size and introduce block_preload_pool_size wit…
Browse files Browse the repository at this point in the history
…h warning
  • Loading branch information
bokobza committed Dec 16, 2024
1 parent 2de45f0 commit 1b86441
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/near_lake_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,22 @@ def __init__( # pylint: disable=too-many-arguments
aws_access_key_id: str,
aws_secret_key: str,
start_block_height: near_primitives.BlockHeight,
preload_pool_size: int = 200,
preload_pool_size: None,
block_preload_pool_size: int = 200
):
logger.warning(
"The 'preload_pool_size' argument is not used and will be deprecated in a "
"future release. Use 'blocks_preload_pool_size' instead."
)

# These are entirely determined by Network.
self.s3_bucket_name = f"near-lake-data-{network.value}"
self.s3_region_name = "eu-central-1"

self.aws_access_key_id = aws_access_key_id
self.aws_secret_key = aws_secret_key
self.start_block_height = start_block_height
self.blocks_preload_pool_size = preload_pool_size
self.blocks_preload_pool_size = block_preload_pool_size


async def start(config: LakeConfig, streamer_messages_queue: asyncio.Queue):
Expand Down

0 comments on commit 1b86441

Please sign in to comment.