Add RedisRouter.Publish method to store and publish messages
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2024-04-23 23:35:23 +02:00
parent 5491244d01
commit a3557d5183

View File

@ -110,6 +110,7 @@ func (r *RedisRouter) storeMessage(msg *meowlib.ToServerMessage) (*meowlib.FromS
return nil, err
}
r.Client.ZAdd(usrmsg.Destination, redis.Z{Score: float64(time.Now().Unix()), Member: out})
r.Client.Publish(usrmsg.Destination, "!")
}
from_server.UuidAck = msg.Uuid
return &from_server, nil