From bfd1a4d33685638aadeab4106f6e8127c124ca20 Mon Sep 17 00:00:00 2001 From: "vito.he" <hxmhlt@163.com> Date: Sat, 22 Jun 2019 11:20:20 +0800 Subject: [PATCH] Fix:for support go 1.11 so change strings.ReplaceAll to strings.Replace --- config_center/zookeeper/listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_center/zookeeper/listener.go b/config_center/zookeeper/listener.go index b746c34ba..c79c05c9b 100644 --- a/config_center/zookeeper/listener.go +++ b/config_center/zookeeper/listener.go @@ -69,5 +69,5 @@ func (l *CacheListener) DataChange(event remoting.Event) bool { } func (l *CacheListener) pathToKey(path string) string { - return strings.ReplaceAll(strings.Replace(path, l.rootPath+"/", "", -1), "/", ".") + return strings.Replace(strings.Replace(path, l.rootPath+"/", "", -1), "/", ".", -1) } -- GitLab