From 1e8e57a70849c491164aa5ead4f14e8668cac9df Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 3 Aug 2021 00:49:13 +0300 Subject: [PATCH] config/default: minor changes Signed-off-by: Vasiliy Tolstov --- config/default.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/config/default.go b/config/default.go index 610abb5b..3e9dec49 100644 --- a/config/default.go +++ b/config/default.go @@ -274,7 +274,7 @@ func (c *defaultConfig) Watch(ctx context.Context, opts ...WatchOption) (Watcher w := &defaultWatcher{ opts: c.opts, wopts: NewWatchOptions(opts...), - done: make(chan bool), + done: make(chan struct{}), vchan: make(chan map[string]interface{}), echan: make(chan error), } @@ -294,12 +294,11 @@ func NewConfig(opts ...Option) Config { } type defaultWatcher struct { - opts Options - wopts WatchOptions - done chan bool - ticker *time.Ticker - vchan chan map[string]interface{} - echan chan error + opts Options + wopts WatchOptions + done chan struct{} + vchan chan map[string]interface{} + echan chan error } func (w *defaultWatcher) run() {