mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
style(router): format budget limiter
This commit is contained in:
parent
397b5c8bd6
commit
e7e61b1810
1 changed files with 4 additions and 4 deletions
|
|
@ -532,7 +532,9 @@ class RouterBudgetLimiting(CustomLogger):
|
|||
|
||||
Only runs if Redis is initialized
|
||||
"""
|
||||
increment_operations_to_flush: list[RedisPipelineIncrementOperation] = ( # mutable-ok: Redis pipeline contract requires a list batch
|
||||
increment_operations_to_flush: list[
|
||||
RedisPipelineIncrementOperation
|
||||
] = ( # mutable-ok: Redis pipeline contract requires a list batch
|
||||
[] # mutable-ok: Redis pipeline batches are lists
|
||||
)
|
||||
try:
|
||||
|
|
@ -541,9 +543,7 @@ class RouterBudgetLimiting(CustomLogger):
|
|||
|
||||
async with self._get_redis_increment_queue_lock():
|
||||
increment_operations_to_flush = self.redis_increment_operation_queue
|
||||
self.redis_increment_operation_queue = (
|
||||
[] # mutable-ok: the emptied queue must remain appendable by logging callbacks
|
||||
)
|
||||
self.redis_increment_operation_queue = [] # mutable-ok: the emptied queue must remain appendable by logging callbacks
|
||||
|
||||
verbose_router_logger.debug(
|
||||
"Pushing Redis Increment Pipeline for queue: %s",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue