From 7489ffffcb8e1aea65bba0eea2851da609435a91 Mon Sep 17 00:00:00 2001 From: ycc Date: Mon, 24 Oct 2022 18:44:21 +0200 Subject: [PATCH] Routing --- server/identity.go | 2 +- server/router.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/identity.go b/server/identity.go index 863a640..2578207 100644 --- a/server/identity.go +++ b/server/identity.go @@ -146,7 +146,7 @@ func (id *Identity) PackForSending(encryptedMessage []byte, signature []byte) (f } // Outbound helper function -func (id *Identity) ProcessOut(peerPublicKey string, msg *meowlib.FromServerMessage) (fromServerMessage []byte, err error) { +func (id *Identity) ProcessOutbound(peerPublicKey string, msg *meowlib.FromServerMessage) (fromServerMessage []byte, err error) { encoded_srv_fromServerMessage, err := id.SerializeFromServerMessage(msg) if err != nil { return nil, err diff --git a/server/router.go b/server/router.go index 203764b..be0d1ee 100644 --- a/server/router.go +++ b/server/router.go @@ -67,10 +67,11 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe } } + } + if len(msg.KnownServers) > 0 { + } /* - case "q": // query messages - break case "s": // servers list breakmsgs