aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_grpc_server.go
diff options
context:
space:
mode:
authorsteve.wei <coderushing@gmail.com>2024-06-05 20:41:46 +0800
committerGitHub <noreply@github.com>2024-06-05 05:41:46 -0700
commitd8da4bbaa713db935514b74f44b5a498bbe5ad7e (patch)
tree4f5714d1fb4f0cf5f8380193c7982654b6f7faeb /weed/server/master_grpc_server.go
parent1f2dc54647f8ab84f2e8e9cd9aa3632760cee869 (diff)
downloadseaweedfs-d8da4bbaa713db935514b74f44b5a498bbe5ad7e.tar.xz
seaweedfs-d8da4bbaa713db935514b74f44b5a498bbe5ad7e.zip
Set the capacity of clientChan to 10000 (#5647)
Diffstat (limited to 'weed/server/master_grpc_server.go')
-rw-r--r--weed/server/master_grpc_server.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.go
index 91f69fef4..c8fe053fa 100644
--- a/weed/server/master_grpc_server.go
+++ b/weed/server/master_grpc_server.go
@@ -361,8 +361,7 @@ func (ms *MasterServer) addClient(filerGroup, clientType string, clientAddress p
// the KeepConnected loop is no longer listening on this channel but we're
// trying to send to it in SendHeartbeat and so we can't lock the
// clientChansLock to remove the channel and we're stuck writing to it
- // 100 is probably overkill
- messageChan = make(chan *master_pb.KeepConnectedResponse, 100)
+ messageChan = make(chan *master_pb.KeepConnectedResponse, 10000)
ms.clientChansLock.Lock()
ms.clientChans[clientName] = messageChan