configurable honkwindow

This commit is contained in:
Ted Unangst 2023-08-28 01:12:53 -04:00
parent b360a01719
commit d69156f96e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 {