Skip to content

Commit 673e427

Browse files
authored
Update README.md
1 parent c2b4b15 commit 673e427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func main() {
6565
### 实时同步配置
6666
启动一个goroutine实时同步配置, errorCh返回notifications/v2非httpcode(200)的错误信息
6767
```
68-
a, err := agollo.New("localhost:8080", "your_appid", agollo.AutoFetchOnCacheMiss())
68+
a, err := agollo.New("localhost:8080", "your_appid", agollo.PreloadNamespaces("application", "test.json"))
6969
// error handle...
7070
7171
errorCh := a.Start() // Start后会启动goroutine监听变化,并更新agollo对象内的配置cache

0 commit comments

Comments
 (0)