Browse Source

fix: plural `clientType` on `ListExistingPeerUpdates` (#8422)

pull/8423/head
Justin Cichra 3 days ago
committed by GitHub
parent
commit
016391530b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      weed/cluster/master_client.go

3
weed/cluster/master_client.go

@ -3,6 +3,7 @@ package cluster
import ( import (
"context" "context"
"github.com/dustin/go-humanize/english"
"github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb" "github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb" "github.com/seaweedfs/seaweedfs/weed/pb/master_pb"
@ -20,7 +21,7 @@ func ListExistingPeerUpdates(master pb.ServerAddress, grpcDialOption grpc.DialOp
return err return err
} }
glog.V(0).Infof("the cluster has %d %s\n", len(resp.ClusterNodes), clientType)
glog.V(0).Infof("the cluster has %d %s\n", len(resp.ClusterNodes), english.PluralWord(len(resp.ClusterNodes), clientType, ""))
for _, node := range resp.ClusterNodes { for _, node := range resp.ClusterNodes {
existingNodes = append(existingNodes, &master_pb.ClusterNodeUpdate{ existingNodes = append(existingNodes, &master_pb.ClusterNodeUpdate{
NodeType: FilerType, NodeType: FilerType,

Loading…
Cancel
Save