From 4e3701df77aa405daab1146944b0691db1c9e1bf Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 5 May 2024 14:16:54 -0700 Subject: [PATCH] reset last error --- weed/mq/client/pub_client/scheduler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/mq/client/pub_client/scheduler.go b/weed/mq/client/pub_client/scheduler.go index c32343e0d..03377d653 100644 --- a/weed/mq/client/pub_client/scheduler.go +++ b/weed/mq/client/pub_client/scheduler.go @@ -241,6 +241,7 @@ func (p *TopicPublisher) doConfigureTopic() (err error) { return err }) if err == nil { + lastErr = nil return nil } else { lastErr = fmt.Errorf("%s: %v", brokerAddress, err)