all repos — honk @ 9e4b327704b0a58096fbac8285feb9619907464d

my fork of honk

configurable honkwindow
Ted Unangst tedu@tedunangst.com
Mon, 28 Aug 2023 01:12:53 -0400
commit

9e4b327704b0a58096fbac8285feb9619907464d

parent

8237a2780e9c07bacb11403db8ef964d16121853

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M database.godatabase.go

@@ -36,7 +36,7 @@ "humungus.tedunangst.com/r/webs/login"

"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
M main.gomain.go

@@ -112,6 +112,8 @@ getconfig("honksep", &honkSep)

getconfig("devel", &develMode) getconfig("fasttimeout", &fastTimeout) getconfig("slowtimeout", &slowTimeout) + getconfig("honkwindow", &honkwindow) + honkwindow *= 24 * time.Hour getconfig("signgets", &signGets) prepareStatements(db) switch cmd {