From 7dc3b70fe40fc7de255a28bb3098bcb8c0d35365 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 27 Jan 2022 21:34:43 +0100 Subject: [PATCH] feat(integrations): fixed tick interval --- backend/services/integrations/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/integrations/main.go b/backend/services/integrations/main.go index 4a5e7641b..35c3ff21e 100644 --- a/backend/services/integrations/main.go +++ b/backend/services/integrations/main.go @@ -54,7 +54,7 @@ func main() { sigchan := make(chan os.Signal, 1) signal.Notify(sigchan, syscall.SIGINT, syscall.SIGTERM) - tick := time.Tick(intervals.INTEGRATIONS_REQUEST_INTERVAL) + tick := time.Tick(intervals.INTEGRATIONS_REQUEST_INTERVAL * time.Millisecond) log.Printf("Integration service started\n") manager.RequestAll() @@ -66,7 +66,7 @@ func main() { pg.Close() os.Exit(0) case <-tick: - // log.Printf("Requesting all...\n") + log.Printf("Requesting all...\n") manager.RequestAll() case event := <-manager.Events: // log.Printf("New integration event: %v\n", *event.RawErrorEvent)