aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/grpc_client.go
diff options
context:
space:
mode:
authoraskeipx <askeipx@gmail.com>2022-08-24 11:18:21 +0500
committerGitHub <noreply@github.com>2022-08-23 23:18:21 -0700
commit2e78a522ab3892debf9aefeb978177678ae52a83 (patch)
tree2f10264a407fb1361c91b3f6a6e9ef06712e477a /weed/operation/grpc_client.go
parent762dc219a6175d5c81968d817d41a16fb3a1163f (diff)
downloadseaweedfs-2e78a522ab3892debf9aefeb978177678ae52a83.tar.xz
seaweedfs-2e78a522ab3892debf9aefeb978177678ae52a83.zip
remove old raft servers if they don't answer to pings for too long (#3398)
* remove old raft servers if they don't answer to pings for too long add ping durations as options rename ping fields fix some todos get masters through masterclient raft remove server from leader use raft servers to ping them CheckMastersAlive for hashicorp raft only * prepare blocking ping * pass waitForReady as param * pass waitForReady through all functions * waitForReady works * refactor * remove unneeded params * rollback unneeded changes * fix
Diffstat (limited to 'weed/operation/grpc_client.go')
-rw-r--r--weed/operation/grpc_client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/operation/grpc_client.go b/weed/operation/grpc_client.go
index c06e501a5..c1f2bba82 100644
--- a/weed/operation/grpc_client.go
+++ b/weed/operation/grpc_client.go
@@ -13,7 +13,7 @@ func WithVolumeServerClient(streamingMode bool, volumeServer pb.ServerAddress, g
return pb.WithGrpcClient(streamingMode, func(grpcConnection *grpc.ClientConn) error {
client := volume_server_pb.NewVolumeServerClient(grpcConnection)
return fn(client)
- }, volumeServer.ToGrpcAddress(), grpcDialOption)
+ }, volumeServer.ToGrpcAddress(), false, grpcDialOption)
}
@@ -22,6 +22,6 @@ func WithMasterServerClient(streamingMode bool, masterServer pb.ServerAddress, g
return pb.WithGrpcClient(streamingMode, func(grpcConnection *grpc.ClientConn) error {
client := master_pb.NewSeaweedClient(grpcConnection)
return fn(client)
- }, masterServer.ToGrpcAddress(), grpcDialOption)
+ }, masterServer.ToGrpcAddress(), false, grpcDialOption)
}