From 016391530b09f99889fe730ee0b9bc3bc546f8fb Mon Sep 17 00:00:00 2001 From: Justin Cichra <1342149+jrcichra@users.noreply.github.com> Date: Mon, 23 Feb 2026 23:19:12 -0500 Subject: [PATCH] fix: plural `clientType` on `ListExistingPeerUpdates` (#8422) --- weed/cluster/master_client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/cluster/master_client.go b/weed/cluster/master_client.go index 69c53c1de..ce41b0515 100644 --- a/weed/cluster/master_client.go +++ b/weed/cluster/master_client.go @@ -3,6 +3,7 @@ package cluster import ( "context" + "github.com/dustin/go-humanize/english" "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb" "github.com/seaweedfs/seaweedfs/weed/pb/master_pb" @@ -20,7 +21,7 @@ func ListExistingPeerUpdates(master pb.ServerAddress, grpcDialOption grpc.DialOp 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 { existingNodes = append(existingNodes, &master_pb.ClusterNodeUpdate{ NodeType: FilerType,