From 92f743b595ba5cee0c78a8e8ddff76db5c2da914 Mon Sep 17 00:00:00 2001 From: ycc Date: Sat, 17 Dec 2022 13:00:28 +0100 Subject: [PATCH] if 2 []byte #3 --- server/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/router.go b/server/router.go index dce5877..7808a8a 100644 --- a/server/router.go +++ b/server/router.go @@ -55,9 +55,9 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe for _, redismsg := range res { println(redismsg.Score) val := redismsg.Member - test := val.([]byte) + test := val.(string) var usrmsg meowlib.PackedUserMessage - err := proto.Unmarshal(test, &usrmsg) + err := proto.Unmarshal([]byte(test), &usrmsg) if err != nil { return nil, err }