From 7f8506e6ea417453eb5f4d2e3776cdd3f297b843 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 22 Dec 2024 14:48:39 +0800 Subject: [PATCH] :bug: Drop just connected service --- pkg/internal/directory/service.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/internal/directory/service.go b/pkg/internal/directory/service.go index bfe4ca9..2df22ef 100644 --- a/pkg/internal/directory/service.go +++ b/pkg/internal/directory/service.go @@ -1,7 +1,6 @@ package directory import ( - "github.com/rs/zerolog/log" "google.golang.org/grpc" ) @@ -24,8 +23,6 @@ func (v *ServiceInstance) GetGrpcConn() (*grpc.ClientConn, error) { conn, err := ConnectService(v) if err != nil { - _ = RemoveServiceInstance(v.ID) - log.Error().Str("id", v.ID).Err(err).Msg("Failed to connect to service, dropped...") return nil, err } else { connectionCache[v.ID] = conn