rationalized NATS

This commit is contained in:
mr
2026-03-18 16:45:11 +01:00
parent 83285c2ab5
commit 380de4c80b
2 changed files with 9 additions and 18 deletions

View File

@@ -82,7 +82,6 @@ func ListenNATS(n *Node) {
for _, p := range m.PeerIDs {
peers, _ := n.GetPeerRecord(context.Background(), p)
for _, pp := range peers {
fmt.Println(n.PeerID.String(), pp, string(propalgation.Payload))
n.StreamService.PublishCommon(&resp.Datatype, resp.User, resp.Groups,
pp.PeerID, stream.ProtocolConsidersResource, propalgation.Payload)
}
@@ -104,7 +103,6 @@ func ListenNATS(n *Node) {
case tools.PB_PLANNER:
m := map[string]interface{}{}
if err := json.Unmarshal(propalgation.Payload, &m); err == nil {
fmt.Println("PLAN", m)
b := []byte{}
if len(m) > 1 {
b = propalgation.Payload
@@ -160,7 +158,6 @@ func ListenNATS(n *Node) {
} else {
m := map[string]interface{}{}
if err := json.Unmarshal(propalgation.Payload, &m); err == nil {
fmt.Println("SEARCH", dt, fmt.Sprintf("%v", m["type"]), fmt.Sprintf("%v", m["type"]))
n.PubSubService.SearchPublishEvent(
context.Background(),
dt,