From 569a53d72392872f0fb503dbf7839ae805dde0f5 Mon Sep 17 00:00:00 2001 From: wrench Date: Wed, 31 Jul 2024 13:54:26 -0400 Subject: [PATCH] chore: pass in appropriate logger to middleware --- internal/bot/workers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bot/workers.go b/internal/bot/workers.go index 37ea1325..81377c9d 100644 --- a/internal/bot/workers.go +++ b/internal/bot/workers.go @@ -161,7 +161,7 @@ func startWorker(l *zap.Logger, botToken string, index int) (*gotgproto.Client, &gotgproto.ClientOpts{ Session: sessionType, DisableCopyright: true, - Middlewares: GetFloodMiddleware(l), + Middlewares: GetFloodMiddleware(log.Desugar()), }, ) if err != nil {