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 {
|
for _, redismsg := range res {
|
||||||
println(redismsg.Score)
|
println(redismsg.Score)
|
||||||
val := redismsg.Member
|
val := redismsg.Member
|
||||||
test := val.([]byte)
|
test := val.(string)
|
||||||
var usrmsg meowlib.PackedUserMessage
|
var usrmsg meowlib.PackedUserMessage
|
||||||
err := proto.Unmarshal(test, &usrmsg)
|
err := proto.Unmarshal([]byte(test), &usrmsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user