From 811f9b3ee469329f1f234e8ec5ac5e832bca9314 Mon Sep 17 00:00:00 2001 From: Rafaela Soares <119665479+rsoaresd@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:22:03 +0100 Subject: [PATCH] increase cache update frequency (#457) --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 3b13965f..627b6a6d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -154,13 +154,13 @@ func main() { } }() - // update cache every 10 seconds + // update cache every 2 seconds go func() { for { if _, err := configuration.ForceLoadRegistrationServiceConfig(cl); err != nil { log.Error(nil, err, "failed to update the configuration cache") } - time.Sleep(10 * time.Second) + time.Sleep(2 * time.Second) } }()