configurable honkwindow
This commit is contained in:
parent
b360a01719
commit
d69156f96e
|
@ -36,7 +36,7 @@ import (
|
||||||
"humungus.tedunangst.com/r/webs/mz"
|
"humungus.tedunangst.com/r/webs/mz"
|
||||||
)
|
)
|
||||||
|
|
||||||
var honkwindow time.Duration = 7 * 24 * time.Hour
|
var honkwindow time.Duration = 7
|
||||||
|
|
||||||
//go:embed schema.sql
|
//go:embed schema.sql
|
||||||
var sqlSchema string
|
var sqlSchema string
|
||||||
|
|
2
main.go
2
main.go
|
@ -112,6 +112,8 @@ func main() {
|
||||||
getconfig("devel", &develMode)
|
getconfig("devel", &develMode)
|
||||||
getconfig("fasttimeout", &fastTimeout)
|
getconfig("fasttimeout", &fastTimeout)
|
||||||
getconfig("slowtimeout", &slowTimeout)
|
getconfig("slowtimeout", &slowTimeout)
|
||||||
|
getconfig("honkwindow", &honkwindow)
|
||||||
|
honkwindow *= 24 * time.Hour
|
||||||
getconfig("signgets", &signGets)
|
getconfig("signgets", &signGets)
|
||||||
prepareStatements(db)
|
prepareStatements(db)
|
||||||
switch cmd {
|
switch cmd {
|
||||||
|
|
Loading…
Reference in New Issue