Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnzzz committed Jan 9, 2024
1 parent f46a51e commit 771f105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/bufman/pkg/transport/http/httpserver/httpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ func Run(
<-ctx.Done()
start := time.Now()
logger.Sugar().Info("shutdown_starting", zap.Duration("shutdown_timeout", s.shutdownTimeout))
defer logger.Sugar().Info("shutdown_finished", zap.Duration("duration", time.Since(start)))
defer func() {
logger.Sugar().Info("shutdown_finished", zap.Duration("duration", time.Since(start)))
}()
if s.shutdownTimeout != 0 {
ctx, cancel := context.WithTimeout(context.Background(), s.shutdownTimeout)
defer cancel()
Expand Down

0 comments on commit 771f105

Please sign in to comment.