Skip to content

Commit

Permalink
chore: pass in appropriate logger to middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSuckz committed Jul 31, 2024
1 parent 7d646fe commit 569a53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/bot/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 569a53d

Please sign in to comment.