Skip to content

Agent Mesh

fix from

Antonio Ojeadddd083a338e
diff --git a/cmd/sam-hub/sync.go b/cmd/sam-hub/sync.go
index 56dbcc97..e00e6f18 100644
--- a/cmd/sam-hub/sync.go
+++ b/cmd/sam-hub/sync.go
@@ -87,7 +87,8 @@ func (h *Hub) startSyncListener(ctx context.Context) {
if err != nil {
return
}
- if msg.From == h.Host.ID() {
+ fromPeer, err := peer.IDFromBytes(msg.From)
+ if err == nil && fromPeer == h.Host.ID() {
continue // Skip our own broadcast
}