Skip to content

Commit

Permalink
[Feature]add runtime namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyx committed Nov 14, 2019
1 parent 18a4112 commit 7da98ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/coocood/freecache v1.1.0/go.mod h1:ePwxCDzOYvARfHdr1pByNct1at3CoKnsipOHwKlNbzI=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/tevid/gohamcrest v1.1.1 h1:ou+xSqlIw1xfGTg1uq1nif/htZ2S3EzRqLm2BP+tYU0=
github.com/tevid/gohamcrest v1.1.1/go.mod h1:3UvtWlqm8j5JbwYZh80D/PVBt0mJ1eJiYgZMibh0H/k=
2 changes: 1 addition & 1 deletion repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (this *Config) GetBoolValue(key string, defaultValue bool) bool {

//GetConfig 根据namespace获取apollo配置
func GetConfig(namespace string) *Config {
return apolloConfigCache[namespace]
return GetConfigAndInit(namespace)
}

//GetConfigAndInit 根据namespace获取apollo配置
Expand Down

0 comments on commit 7da98ef

Please sign in to comment.