configurable honkwindow
This commit is contained in:
parent
b360a01719
commit
d69156f96e
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
2
main.go
2
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 {
|
||||
|
|
Loading…
Reference in a new issue