Browse Source

fix mistake

pull/2274/head
Chris Lu 3 years ago
parent
commit
08258a819d
  1. 2
      weed/pb/grpc_client_server.go

2
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 {

Loading…
Cancel
Save