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

@@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/status"
)
// ConnectToBalancer receives connections from brokers and collects stats
func (broker *MessageQueueBroker) ConnectToBalancer(stream mq_pb.SeaweedMessaging_ConnectToBalancerServer) error {
// ConnectToPubCoordinator receives connections from brokers and collects stats
func (broker *MessageQueueBroker) ConnectToPubCoordinator(stream mq_pb.SeaweedMessaging_ConnectToPubCoordinatorServer) error {
if !broker.lockAsBalancer.IsLocked() {
return status.Errorf(codes.Unavailable, "not current broker balancer")
}