Interface to byte conversion, test #1
This commit is contained in:
parent
4e7a804ef1
commit
56774c389d
@ -54,9 +54,9 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe
|
|||||||
}
|
}
|
||||||
for _, redismsg := range res {
|
for _, redismsg := range res {
|
||||||
println(redismsg.Score)
|
println(redismsg.Score)
|
||||||
val := redismsg.Member.([]byte)
|
val := redismsg.Member.(*[]byte)
|
||||||
var usrmsg meowlib.PackedUserMessage
|
var usrmsg meowlib.PackedUserMessage
|
||||||
err := proto.Unmarshal(val, &usrmsg)
|
err := proto.Unmarshal(*val, &usrmsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user