bugfix in serialization of incoming messages in redis

This commit is contained in:
ycc
2022-12-17 21:37:48 +01:00
parent 1031529964
commit 7d6d8dd913
2 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe
if len(msg.Messages) > 0 { // user message
for _, usrmsg := range msg.Messages {
// serialize the message to store it as byte array into redis
out, err := proto.Marshal(msg)
out, err := proto.Marshal(usrmsg)
if err != nil {
return nil, err
}