Skip to content

Commit

Permalink
fixup! Simplified interfaces and optimized resolver matching logic
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Jan 16, 2025
1 parent b15d0b7 commit 0cc99f2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions platform/view/core/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0cc99f2

Please sign in to comment.