Skip to content

Commit

Permalink
fix typo for error message (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
husy-dev authored Nov 6, 2023
1 parent 51adb12 commit a94159e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ func (c *client) Close() {
func (c *client) WriterPacket(packet packets.ControlPacket) error {
defer func() {
if err := recover(); err != nil {
log.Error("recover error, ", zap.Any("recover", r))
log.Error("recover error, ", zap.Any("recover", err))
}
}()
if c.status == Disconnected {
Expand Down

0 comments on commit a94159e

Please sign in to comment.