config/default: minor changes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
5d0959b0a1
commit
1e8e57a708
@ -274,7 +274,7 @@ func (c *defaultConfig) Watch(ctx context.Context, opts ...WatchOption) (Watcher
|
|||||||
w := &defaultWatcher{
|
w := &defaultWatcher{
|
||||||
opts: c.opts,
|
opts: c.opts,
|
||||||
wopts: NewWatchOptions(opts...),
|
wopts: NewWatchOptions(opts...),
|
||||||
done: make(chan bool),
|
done: make(chan struct{}),
|
||||||
vchan: make(chan map[string]interface{}),
|
vchan: make(chan map[string]interface{}),
|
||||||
echan: make(chan error),
|
echan: make(chan error),
|
||||||
}
|
}
|
||||||
@ -294,12 +294,11 @@ func NewConfig(opts ...Option) Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type defaultWatcher struct {
|
type defaultWatcher struct {
|
||||||
opts Options
|
opts Options
|
||||||
wopts WatchOptions
|
wopts WatchOptions
|
||||||
done chan bool
|
done chan struct{}
|
||||||
ticker *time.Ticker
|
vchan chan map[string]interface{}
|
||||||
vchan chan map[string]interface{}
|
echan chan error
|
||||||
echan chan error
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *defaultWatcher) run() {
|
func (w *defaultWatcher) run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user