Update PullSubscribe

This commit is contained in:
Neil Alexander 2022-10-14 12:11:08 +01:00
parent 930d3a4b7f
commit 4def2f695d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -152,6 +152,7 @@ func (r *Inputer) startWorkerForRoom(roomID string) {
nats.DeliverAll(), nats.DeliverAll(),
nats.AckWait(MaximumMissingProcessingTime+(time.Second*10)), nats.AckWait(MaximumMissingProcessingTime+(time.Second*10)),
nats.Bind(r.InputRoomEventTopic, consumer), nats.Bind(r.InputRoomEventTopic, consumer),
nats.InactiveThreshold(time.Hour),
) )
if err != nil { if err != nil {
logrus.WithError(err).Errorf("Failed to subscribe to stream for room %q", w.roomID) logrus.WithError(err).Errorf("Failed to subscribe to stream for room %q", w.roomID)