From 62397f23715062b6e8e710568dc8f88b0bab50d8 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 7 Mar 2024 10:47:50 -0800 Subject: [PATCH] adjust error --- weed/mq/broker/broker_server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/mq/broker/broker_server.go b/weed/mq/broker/broker_server.go index 773ee19cb..492d088e2 100644 --- a/weed/mq/broker/broker_server.go +++ b/weed/mq/broker/broker_server.go @@ -86,8 +86,9 @@ func NewMessageBroker(option *MessageQueueBrokerOption, grpcDialOption grpc.Dial lockClient := cluster.NewLockClient(grpcDialOption, mqBroker.currentFiler) mqBroker.lockAsBalancer = lockClient.StartLongLivedLock(pub_balancer.LockBrokerBalancer, string(self), func(newLockOwner string) { + // FIXME this is a blocking call, should be in a goroutine if err := mqBroker.BrokerConnectToBalancer(newLockOwner); err != nil { - glog.V(0).Infof("BrokerConnectToBalancer: %v", err) + glog.V(0).Infof("BrokerConnectToBalancer %s: %v", newLockOwner, err) } }) for {