Skip to content

Commit

Permalink
fix exponent operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazabbas committed May 17, 2024
1 parent f6737be commit f0c3b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyth_observer/zenduty.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def send_zenduty_alert(alert_identifier, message, resolved=False, summary=
f"Received 429 Too Many Requests for {alert_identifier}. Retrying in 1 second..."
)
await asyncio.sleep(
min(30, 2 ^ retries)
min(30, 2**retries)
) # Backoff before retrying, wait upto 30s
else:
logger.error(
Expand Down

0 comments on commit f0c3b12

Please sign in to comment.