mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
close grpc connections during errors
This commit is contained in:
parent
db1360c36a
commit
e11e127d91
|
@ -81,6 +81,7 @@ func WithCachedGrpcClient(ctx context.Context, fn func(*grpc.ClientConn) error,
|
|||
grpcClientsLock.Lock()
|
||||
delete(grpcClients, address)
|
||||
grpcClientsLock.Unlock()
|
||||
grpcConnection.Close()
|
||||
}
|
||||
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue