mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Update PullSubscribe
This commit is contained in:
parent
930d3a4b7f
commit
4def2f695d
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue