aboutsummaryrefslogtreecommitdiff
path: root/cgi/servers.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-02 00:38:31 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-02 00:38:31 +0000
commita69f9cfc6ba6ff332d1e2d8303020d49443ca8cb (patch)
treea487561c677a1c54fecae70fa5f46294449bd1b4 /cgi/servers.go
parentbce250b0e75812c4f61b925d898c320d6ef11c5c (diff)
downloadcommunique-a69f9cfc6ba6ff332d1e2d8303020d49443ca8cb.tar.gz
working dedup
Diffstat (limited to 'cgi/servers.go')
-rw-r--r--cgi/servers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/servers.go b/cgi/servers.go
index c751135..58d72c1 100644
--- a/cgi/servers.go
+++ b/cgi/servers.go
@@ -62,7 +62,7 @@ func startCGIServer(h config.Handler) {
}
func startTicker(h config.Handler, persister *models.Persister, log *zap.SugaredLogger) {
- ticker := time.NewTicker(h.Interval)
+ ticker := time.NewTicker(h.Interval) // TODO add some random jitter here so handlers dont run at the same exact intervals
done := make(chan bool)
func() {
for {