1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 01:27:01 +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)

View File

@@ -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)
}

View File

@@ -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)