generated from VLADIMIR/template
fix
This commit is contained in:
@@ -76,7 +76,7 @@ func (s *sender) Send(ctx context.Context, message Message) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("email: smtp dial %s: %w", addr, err)
|
||||
}
|
||||
defer rawConn.Close()
|
||||
defer func() { _ = rawConn.Close() }()
|
||||
|
||||
conn := tls.Client(rawConn, s.tlsConfig)
|
||||
if deadline, ok := ctx.Deadline(); ok {
|
||||
|
||||
Reference in New Issue
Block a user