This commit is contained in:
mr
2026-02-26 09:14:34 +01:00
parent 779e36aaef
commit 79aa3cc2b3
2 changed files with 13 additions and 1 deletions

View File

@@ -146,6 +146,18 @@ func ListenNATS(n *Node) {
}
}
}
default:
// minio / admiralty config considers — route back to OriginID.
var m struct {
OriginID string `json:"origin_id"`
}
if err := json.Unmarshal(propalgation.Payload, &m); err == nil && m.OriginID != "" {
peers, _ := n.GetPeerRecord(context.Background(), m.OriginID)
for _, p := range peers {
n.StreamService.PublishCommon(nil, resp.User,
p.PeerID, stream.ProtocolConsidersResource, propalgation.Payload)
}
}
}
case tools.PB_PLANNER:
m := map[string]interface{}{}