From d69156f96ece1f7ee7ce4b177193b1e8e3dcaaee Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 28 Aug 2023 01:12:53 -0400 Subject: [PATCH] configurable honkwindow --- database.go | 2 +- main.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/database.go b/database.go index dacca18..6d7b5f6 100644 --- a/database.go +++ b/database.go @@ -36,7 +36,7 @@ import ( "humungus.tedunangst.com/r/webs/mz" ) -var honkwindow time.Duration = 7 * 24 * time.Hour +var honkwindow time.Duration = 7 //go:embed schema.sql var sqlSchema string diff --git a/main.go b/main.go index d5839ec..e2d42ef 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,8 @@ func main() { getconfig("devel", &develMode) getconfig("fasttimeout", &fastTimeout) getconfig("slowtimeout", &slowTimeout) + getconfig("honkwindow", &honkwindow) + honkwindow *= 24 * time.Hour getconfig("signgets", &signGets) prepareStatements(db) switch cmd {