mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
chore: fix linter warnings (#530)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -486,7 +486,7 @@ func playScriptAgainst(t *testing.T, c *textproto.Conn, script []scriptStep) {
|
||||
t.Helper()
|
||||
|
||||
for i, step := range script {
|
||||
id, err := c.Cmd(step.send)
|
||||
id, err := c.Cmd("%s", step.send)
|
||||
if err != nil {
|
||||
t.Fatalf("Step %d, failed to send %q: %v", i, step.send, err)
|
||||
}
|
||||
|
||||
@@ -154,8 +154,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", "smtp").Err(err).
|
||||
Msgf("SMTP accept timeout; retrying in %v", tempDelay)
|
||||
|
||||
Reference in New Issue
Block a user