From 673e4279634bb040f23c46966d810b75591c0879 Mon Sep 17 00:00:00 2001 From: Xingwang Liu Date: Wed, 28 Oct 2020 11:27:58 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bff4dde..4c76b00 100644 --- a/README.md +++ b/README.md @@ -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