From 0cc99f2b4207424f3afa314f169a472681a38645 Mon Sep 17 00:00:00 2001 From: Alexandros Filios Date: Thu, 16 Jan 2025 11:02:31 +0100 Subject: [PATCH] fixup! Simplified interfaces and optimized resolver matching logic Signed-off-by: Alexandros Filios --- platform/view/core/endpoint/endpoint.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/platform/view/core/endpoint/endpoint.go b/platform/view/core/endpoint/endpoint.go index d32451472..5f2d5a2ef 100644 --- a/platform/view/core/endpoint/endpoint.go +++ b/platform/view/core/endpoint/endpoint.go @@ -145,15 +145,7 @@ func (r *Service) GetIdentity(endpoint string, pkID []byte) (view.Identity, erro // search in the resolver list for _, resolver := range r.resolvers { if r.matchesResolver(endpoint, pkID, resolver) { - - id, err := resolver.GetIdentity() - if err != nil { - return nil, err - } - if logger.IsEnabledFor(zapcore.DebugLevel) { - logger.Debugf("resolving [%s,%s] to %s", endpoint, view.Identity(pkID), id) - } - return id, nil + return resolver.GetIdentity() } } return nil, errors.Errorf("identity not found at [%s,%s]", endpoint, view.Identity(pkID))