From 08258a819d355883ec102e1a3dc6f1e7a1c5f1b4 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 14 Aug 2021 05:10:30 -0700 Subject: [PATCH] fix mistake --- weed/pb/grpc_client_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.go index 53935858e..8543df366 100644 --- a/weed/pb/grpc_client_server.go +++ b/weed/pb/grpc_client_server.go @@ -119,7 +119,7 @@ func WithCachedGrpcClient(fn func(*grpc.ClientConn) error, address string, opts } executionErr := fn(vgc.ClientConn) if executionErr != nil { - if strings.Contains(executionErr.Error(), grpc.ErrServerStopped) || + if strings.Contains(executionErr.Error(), "transport") || strings.Contains(executionErr.Error(), "connection closed") { grpcClientsLock.Lock() if t, ok := grpcClients[address]; ok {