From 7d5de09000d6bcde76d42a10a20e1ebdb12a1da6 Mon Sep 17 00:00:00 2001 From: sanxun0325 Date: Sat, 9 Oct 2021 20:45:57 +0800 Subject: [PATCH] scheduler delay is 500 ms --- clients/config_client/config_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/config_client/config_client.go b/clients/config_client/config_client.go index 6192dd11..03cf1662 100644 --- a/clients/config_client/config_client.go +++ b/clients/config_client/config_client.go @@ -79,7 +79,7 @@ func NewConfigClient(nc nacos_client.INacosClient) (*ConfigClient, error) { schedulerMap: cache.NewConcurrentMap(), } config.schedulerMap.Set("root", true) - go config.delayScheduler(time.NewTimer(1*time.Millisecond), 10*time.Millisecond, "root", config.listenConfigExecutor()) + go config.delayScheduler(time.NewTimer(1*time.Millisecond), 500*time.Millisecond, "root", config.listenConfigExecutor()) config.INacosClient = nc clientConfig, err := nc.GetClientConfig()