Revert "added redis persistence mode"

This commit is contained in:
JB
2022-02-24 21:10:39 +00:00
committed by GitHub
parent 4a833dd081
commit c8c0a5a094
5 changed files with 5 additions and 733 deletions

View File

@@ -492,7 +492,7 @@ func (s *Server) publishToSubscribers(pk packets.Packet) {
if s.Store != nil {
s.Store.WriteInflight(persistence.Message{
ID: "if_" + client.ID + "_" + strconv.Itoa(int(out.PacketID)),
T: persistence.KInflight,
T: persistence.KRetained,
FixedHeader: persistence.FixedHeader(out.FixedHeader),
TopicName: out.TopicName,
Payload: out.Payload,
@@ -734,7 +734,7 @@ func (s *Server) ResendClientInflight(cl *clients.Client, force bool) error {
if s.Store != nil {
s.Store.WriteInflight(persistence.Message{
ID: "if_" + cl.ID + "_" + strconv.Itoa(int(tk.Packet.PacketID)),
T: persistence.KInflight,
T: persistence.KRetained,
FixedHeader: persistence.FixedHeader(tk.Packet.FixedHeader),
TopicName: tk.Packet.TopicName,
Payload: tk.Packet.Payload,