fix(typo): client.go error message

This commit is contained in:
Norbert Hauriel 2024-07-24 13:12:06 +02:00 committed by GitHub
parent 0aecfd9b04
commit c811ee689f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -683,7 +683,7 @@ func (c *Client) DialAndSendWithContext(ctx context.Context, messages ...*Msg) e
return fmt.Errorf("send failed: %w", err)
}
if err := c.Close(); err != nil {
return fmt.Errorf("failed to close connction: %w", err)
return fmt.Errorf("failed to close connection: %w", err)
}
return nil
}