Skip to content

Agent Mesh

handle reconnect:

Antonio Ojea113d00819d69
diff --git a/cmd/sam-node/node.go b/cmd/sam-node/node.go
index 848b16f2..8fa820f8 100644
--- a/cmd/sam-node/node.go
+++ b/cmd/sam-node/node.go
@@ -434,6 +434,8 @@ func (n *SamNode) startConnectionMonitor(ctx context.Context, bootstrapDuration,
}
if reconnected {
+ logger.Infof("[Monitor] Reconnected successfully. Reproviding services to DHT...")
+ n.services.ReprovideAll(ctx)
consecutiveFailures = 0
continue
}