From de7368817a94e2b798203d3f4a66aa1d2d2a135a Mon Sep 17 00:00:00 2001 From: Michael Li Date: Wed, 5 Apr 2023 09:51:04 +0800 Subject: [PATCH] just optimize typo in internal/conf package --- internal/conf/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/conf/setting.go b/internal/conf/setting.go index 2e2be487..204ca985 100644 --- a/internal/conf/setting.go +++ b/internal/conf/setting.go @@ -18,7 +18,7 @@ import ( ) //go:embed config.yaml -var fileBytes []byte +var configBytes []byte type pyroscopeConf struct { AppName string @@ -379,7 +379,7 @@ func newViper() (*viper.Viper, error) { vp.AddConfigPath(".") vp.AddConfigPath("custom/") vp.SetConfigType("yaml") - err := vp.ReadConfig(bytes.NewReader(fileBytes)) + err := vp.ReadConfig(bytes.NewReader(configBytes)) if err != nil { return nil, err }