From a94159e79cc8d76786cdc2e6d5cd5cb2239e482e Mon Sep 17 00:00:00 2001 From: Husy Date: Mon, 6 Nov 2023 09:15:35 +0800 Subject: [PATCH] fix typo for error message (#191) --- broker/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/client.go b/broker/client.go index 83edce01..000a2047 100644 --- a/broker/client.go +++ b/broker/client.go @@ -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 {