Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shima-park authored Oct 28, 2020
1 parent c2b4b15 commit 673e427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
### 实时同步配置
启动一个goroutine实时同步配置, errorCh返回notifications/v2非httpcode(200)的错误信息
```
a, err := agollo.New("localhost:8080", "your_appid", agollo.AutoFetchOnCacheMiss())
a, err := agollo.New("localhost:8080", "your_appid", agollo.PreloadNamespaces("application", "test.json"))
// error handle...
errorCh := a.Start() // Start后会启动goroutine监听变化,并更新agollo对象内的配置cache
Expand Down

0 comments on commit 673e427

Please sign in to comment.