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