mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00:00
Use AckNone
on the ephemeral room input consumer
This commit is contained in:
parent
b05e028f7d
commit
482914aef4
@ -172,11 +172,10 @@ func (r *Inputer) Start() error {
|
|||||||
func(m *nats.Msg) {
|
func(m *nats.Msg) {
|
||||||
roomID := m.Header.Get(jetstream.RoomID)
|
roomID := m.Header.Get(jetstream.RoomID)
|
||||||
r.startWorkerForRoom(roomID)
|
r.startWorkerForRoom(roomID)
|
||||||
_ = m.Ack()
|
|
||||||
},
|
},
|
||||||
nats.HeadersOnly(),
|
nats.HeadersOnly(),
|
||||||
nats.DeliverAll(),
|
nats.DeliverAll(),
|
||||||
nats.AckAll(),
|
nats.AckNone(),
|
||||||
nats.BindStream(r.InputRoomEventTopic),
|
nats.BindStream(r.InputRoomEventTopic),
|
||||||
)
|
)
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user