if 2 []byte #3
This commit is contained in:
parent
e7c685b8aa
commit
92f743b595
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user