mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 03:07:54 +08:00
fix mistake
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user