Use AckNone on the ephemeral room input consumer

This commit is contained in:
Neil Alexander 2022-09-13 15:25:02 +01:00
parent b05e028f7d
commit 482914aef4
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -172,11 +172,10 @@ func (r *Inputer) Start() error {
func(m *nats.Msg) {
roomID := m.Header.Get(jetstream.RoomID)
r.startWorkerForRoom(roomID)
_ = m.Ack()
},
nats.HeadersOnly(),
nats.DeliverAll(),
nats.AckAll(),
nats.AckNone(),
nats.BindStream(r.InputRoomEventTopic),
)
return err