Skip to content

Commit

Permalink
fix async wait metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Basov committed Oct 15, 2023
1 parent 011d563 commit 035b37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ async def fetcher_stats_command(update: Update, context: ContextTypes.DEFAULT_TY
await update.message.reply_text("Unauthorized. This command is only for admins.")
return

metrics = rabbit.metrics.get_all_fetcher_metrics()
metrics = await rabbit.metrics.get_all_fetcher_metrics()
if metrics:
for fetcher_id, data in metrics.items():
interval = int(data["rate_interval"] / 60)
Expand Down

0 comments on commit 035b37f

Please sign in to comment.