configurable honkwindow
Ted Unangst tedu@tedunangst.com
Mon, 28 Aug 2023 01:12:53 -0400
2 files changed,
3 insertions(+),
1 deletions(-)
M
database.go
→
database.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.go
→
main.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 {