diff --git a/resource/consul/watch.go b/resource/consul/watch.go index 070b092cce9c57567102aebaa10f1b6d12be3a44..5c30899c463cbdc54f9d6dad8cc08d69c59ea837 100644 --- a/resource/consul/watch.go +++ b/resource/consul/watch.go @@ -114,6 +114,7 @@ func newWatcher(watchType string, opts map[string]string, consulAddr string, cal } func RegisterWatcher(watchType string, opts map[string]string, consulAddr string, callback ServiceCallback) error { + return nil w, err := newWatcher(watchType, opts, consulAddr, callback) if err != nil { mylogrus.MyLog.Error(err)