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 }