From ff193f466cc80ff9af0fd5c8a511317e17209b61 Mon Sep 17 00:00:00 2001 From: Charles-Antoine Mathieu Date: Sun, 6 Aug 2023 17:17:09 +0200 Subject: [PATCH] Set cleaning interval to 5 to 10 minutes instead of 2 to 3 hours --- server/server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server/server.go b/server/server/server.go index 74de7406..06a72649 100644 --- a/server/server/server.go +++ b/server/server/server.go @@ -60,8 +60,8 @@ func NewPlikServer(config *common.Configuration) (ps *PlikServer) { ps = new(PlikServer) ps.config = config - ps.cleaningRandomDelay = 3600 - ps.cleaningMinOffset = 7200 + ps.cleaningRandomDelay = 300 + ps.cleaningMinOffset = 300 ps.metrics = common.NewPlikMetrics() ps.close = make(chan struct{})