Skip to content

Commit

Permalink
fix datarace
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Sep 6, 2022
1 parent cb4c1bc commit 036decf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ func New(config ...Config) fiber.Handler {
data.ChainErr = chainErr
data.Start = start
data.Stop = stop
mu.Unlock()

if err = cfg.LoggerFunc(c, data, cfg); err != nil {
return err
}
mu.Unlock()

return nil
}
Expand Down

0 comments on commit 036decf

Please sign in to comment.