mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
fix: remove dead code guard (if i is None) in spend_logs retry handler
This commit is contained in:
parent
9bd1e2a708
commit
3e5ff78d04
1 changed files with 0 additions and 2 deletions
|
|
@ -4664,8 +4664,6 @@ class ProxyUpdateSpend:
|
|||
# Randomized backoff to reduce repeated collisions across pods
|
||||
await asyncio.sleep(random.uniform(2**i, 2**(i+1)))
|
||||
except Exception as e:
|
||||
if i is None:
|
||||
i = 0
|
||||
if _is_deadlock_error(e) and i < n_retry_times:
|
||||
verbose_proxy_logger.warning(
|
||||
"Spend tracking - deadlock writing spend logs, "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue