From 6018229b2724570199db0f8509afe006892dc07a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 14 Oct 2022 13:17:13 +0100 Subject: [PATCH] Use a day threshold --- roomserver/internal/input/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/internal/input/input.go b/roomserver/internal/input/input.go index ca5db9434..f5099ca11 100644 --- a/roomserver/internal/input/input.go +++ b/roomserver/internal/input/input.go @@ -94,7 +94,7 @@ type Inputer struct { // indefinitely for rooms that might no longer be active, since they do // have an interest overhead in the NATS Server. If the room becomes // active again then we'll recreate the consumer anyway. -const inactiveThreshold = time.Minute +const inactiveThreshold = time.Hour * 24 type worker struct { phony.Inbox