From ca671a0e8e44d16c06022b064f0a902574169f93 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 10 Feb 2025 18:04:40 +0800 Subject: [PATCH] update config --- pkg/common/config/config.go | 3 ++- pkg/common/config/parse.go | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index bdfd44931..275dec70f 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -635,7 +635,7 @@ func (l *CacheConfig) Enable() bool { return l.Topic != "" && l.SlotNum > 0 && l.SlotSize > 0 } -var ( +const ( DiscoveryConfigFilename = "discovery.yml" KafkaConfigFileName = "kafka.yml" LocalCacheConfigFileName = "local-cache.yml" @@ -657,6 +657,7 @@ var ( RedisConfigFileName = "redis.yml" ShareFileName = "share.yml" WebhooksConfigFileName = "webhooks.yml" + NotificationFileName = "notification.yml" ) func (d *Discovery) GetConfigFileName() string { diff --git a/pkg/common/config/parse.go b/pkg/common/config/parse.go index 08f82ac7d..42cca08cd 100644 --- a/pkg/common/config/parse.go +++ b/pkg/common/config/parse.go @@ -26,9 +26,7 @@ import ( ) const ( - FileName = "config.yaml" - NotificationFileName = "notification.yaml" - DefaultFolderPath = "../config/" + FileName = "config.yaml" ) // return absolude path join ../config/, this is k8s container config path.