Switch stats collection to 15s, not 3s

parent 98084d2b
......@@ -40,9 +40,8 @@ func stats(pool *redis.Pool, db *bolt.DB) {
return
}
// every 10s, hit redis for 'active' ShortURLs
// duration := time.Duration(10) * time.Second
duration := time.Duration(3) * time.Second
// every 15s, hit redis for 'active' ShortURLs
duration := time.Duration(15) * time.Second
ticker := time.NewTicker(duration)
for t := range ticker.C {
......
Markdown is supported
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