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