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