From 151c71fc9f704197d8149c8c6c04ea278910b454 Mon Sep 17 00:00:00 2001 From: songshiyuan 00649746 Date: Wed, 27 Dec 2023 21:26:13 +0800 Subject: [PATCH] extend the time to reset cache --- server/config/config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index 05178efc7..f0af627f3 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -25,21 +25,22 @@ import ( "runtime" "time" + "github.com/go-chassis/go-archaius" + "github.com/apache/servicecomb-service-center/pkg/log" "github.com/apache/servicecomb-service-center/pkg/plugin" "github.com/apache/servicecomb-service-center/pkg/util" "github.com/apache/servicecomb-service-center/version" - "github.com/go-chassis/go-archaius" ) const ( InitVersion = "0" - minCacheTTL = 5 * time.Minute + minCacheTTL = 60 * time.Minute ) var ( Server = NewServerConfig() - //App is application root config + // App is application root config App = &AppConfig{Server: Server} )