Commit c8a6f1b4 authored by Erick Hitter's avatar Erick Hitter
Browse files

Allow heartbeat to be disabled, as `0` wouldn't make sense as an interval anyway

parent 87e71172
......@@ -127,6 +127,11 @@ func retrieveSitesPeriodically(sites chan<- Site) {
}
func heartbeat() {
if heartbeatInt == 0 {
logger.Println("heartbeat disabled")
return
}
interval := time.Duration(heartbeatInt) * time.Second
time.Sleep(interval)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment