Skip to content

Commit

Permalink
worker method optional page size
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Sep 12, 2023
1 parent d256802 commit e18b0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharded_queue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class Worker:
coordinator: Coordinator
queue: Queue

def page_size(self, limit: int | None = None) -> int:
def page_size(self, limit: Optional[int] = None) -> int:
if limit is None:
return settings.worker_batch_size

Expand Down

0 comments on commit e18b0f1

Please sign in to comment.