fix mistake

This commit is contained in:
Chris Lu 2021-08-14 05:10:30 -07:00
parent 4909bd9684
commit 08258a819d

View File

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