fix: remove dead code guard (if i is None) in spend_logs retry handler

This commit is contained in:
pnookala-godaddy 2026-03-30 10:06:01 -07:00
parent 9bd1e2a708
commit 3e5ff78d04

View file

@ -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, "