Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
perf(discovery): skip empty gossip verification
Rhein1 / Agoragentic7a57715db749
diff --git a/internal/node/mcp_handlers.go b/internal/node/mcp_handlers.goindex 96beb28c..c1380220 100644--- a/internal/node/mcp_handlers.go+++ b/internal/node/mcp_handlers.go@@ -424,6 +424,10 @@ func gossipToolRows(provs []samdiscovery.Provider, toolName, serviceNameFilter s// authorization evidence. Each candidate is confirmed through the existing// authenticated MCP session and exact tools/list response before it is exposed.func (n *SamNode) verifyGossipToolRows(ctx context.Context, candidates []remoteToolRow) []remoteToolRow {+ if len(candidates) == 0 {+ return nil+ }+const maxConcurrent = 8verifyCtx, cancel := context.WithTimeout(ctx, 5*time.Second)