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 }