fix(channels/email): ignore the IMAP close error explicitly

This commit is contained in:
sam committed 2026-10-05 18:16:28 +11:00
1 parent c4f9c3580c
commit ea97517182
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ func run(ctx context.Context, cfg channel.Config, chat gatewayv1.ChatServiceClie
if err != nil {
return fmt.Errorf("email: dial %s: %w", s.imapAddr, err)
}
defer client.Close()
defer func() { _ = client.Close() }()
if err := client.Login(s.username, s.password).Wait(); err != nil {
return fmt.Errorf("email: imap login: %w", err)
}