mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Use AckNone
on the ephemeral room input consumer
This commit is contained in:
parent
b05e028f7d
commit
482914aef4
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue