1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

chore: fix linter warnings (#530)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2024-09-28 11:49:32 -07:00
committed by GitHub
parent 924fb46b4e
commit 95ec463f26
3 changed files with 5 additions and 5 deletions

View File

@@ -97,8 +97,8 @@ func (s *Server) serve(ctx context.Context) {
} else {
tempDelay *= 2
}
if max := 1 * time.Second; tempDelay > max {
tempDelay = max
if maxDelay := 1 * time.Second; tempDelay > maxDelay {
tempDelay = maxDelay
}
log.Error().Str("module", "pop3").Err(err).
Msgf("POP3 accept timout; retrying in %v", tempDelay)