Skip to content

Commit bfb89f2

Browse files
danielshtelDaniil Levchenkos3rius
authored
Fix typos in docstring and variables. (#80)
* Fix typos in docstring and variables. * Update taskiq_redis/list_schedule_source.py Co-authored-by: Pavel Kirilin <s3riussan@gmail.com> * Update taskiq_redis/list_schedule_source.py Co-authored-by: Pavel Kirilin <s3riussan@gmail.com> --------- Co-authored-by: Daniil Levchenko <daniil.levchenko@ronis.info> Co-authored-by: Pavel Kirilin <s3riussan@gmail.com>
1 parent 4eb04ed commit bfb89f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

taskiq_redis/list_schedule_source.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313

1414

1515
class ListRedisScheduleSource(ScheduleSource):
16-
"""Schecule source based on arrays."""
16+
"""Schedule source based on arrays."""
1717

1818
def __init__(
1919
self,
2020
url: str,
2121
prefix: str = "schedule",
2222
max_connection_pool_size: Optional[int] = None,
2323
serializer: Optional[TaskiqSerializer] = None,
24-
bufffer_size: int = 50,
24+
buffer_size: int = 50,
2525
skip_past_schedules: bool = False,
2626
**connection_kwargs: Any,
2727
) -> None:
2828
super().__init__()
2929
self._prefix = prefix
30-
self._buffer_size = bufffer_size
30+
self._buffer_size = buffer_size
3131
self._connection_pool = BlockingConnectionPool.from_url(
3232
url=url,
3333
max_connections=max_connection_pool_size,
@@ -185,11 +185,11 @@ async def get_schedules(self) -> List["ScheduledTask"]:
185185
async with Redis(connection_pool=self._connection_pool) as redis:
186186
buffer = []
187187
crons = await redis.lrange(self._get_cron_key(), 0, -1) # type: ignore
188-
logger.debug("Got cron scheduleds: %s", crons)
188+
logger.debug("Got %d cron schedules", len(crons))
189189
if crons:
190190
buffer.extend(crons)
191191
timed.extend(await redis.lrange(self._get_time_key(current_time), 0, -1)) # type: ignore
192-
logger.debug("Got timed scheduleds: %s", crons)
192+
logger.debug("Got %d timed schedules", len(timed))
193193
if timed:
194194
buffer.extend(timed)
195195
while buffer:

0 commit comments

Comments
 (0)