Skip to content

Commit

Permalink
Use explicit ack on supervisor consumer, now durable
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Dec 11, 2024
1 parent 71e722a commit fa5128a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roomserver/internal/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ func (r *Inputer) Start() error {
func(m *nats.Msg) {
roomID := m.Header.Get(jetstream.RoomID)
r.startWorkerForRoom(roomID)
_ = m.AckSync()
},
nats.HeadersOnly(),
nats.BindStream(r.InputRoomEventTopic),
nats.OrderedConsumer(),
nats.Durable("supervisor"),
nats.ManualAck(),
)

// Make sure that the room consumers have the right config.
Expand Down

0 comments on commit fa5128a

Please sign in to comment.