This commit is contained in:
chrislu
2023-10-11 21:44:56 -07:00
parent fb450b2a5d
commit 35b5264ab7
8 changed files with 510 additions and 552 deletions

View File

@@ -72,9 +72,9 @@ func NewMessageBroker(option *MessageQueueBrokerOption, grpcDialOption grpc.Dial
lockClient := cluster.NewLockClient(grpcDialOption, mqBroker.currentFiler)
mqBroker.lockAsBalancer = lockClient.StartLock(balancer.LockBrokerBalancer, self)
for {
err := mqBroker.BrokerConnectToBalancer(self)
err := mqBroker.BrokerConnectToPubCoordinator(self)
if err != nil {
fmt.Printf("BrokerConnectToBalancer: %v\n", err)
fmt.Printf("BrokerConnectToPubCoordinator: %v\n", err)
}
time.Sleep(time.Second)
}