Vasiliy Tolstov
06136312bb
* regen files with never protoc * rewrite import path Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
25 lines
384 B
Go
25 lines
384 B
Go
package env
|
|
|
|
import (
|
|
"github.com/unistack-org/micro/v3/config/source"
|
|
)
|
|
|
|
type watcher struct {
|
|
exit chan struct{}
|
|
}
|
|
|
|
func (w *watcher) Next() (*source.ChangeSet, error) {
|
|
<-w.exit
|
|
|
|
return nil, source.ErrWatcherStopped
|
|
}
|
|
|
|
func (w *watcher) Stop() error {
|
|
close(w.exit)
|
|
return nil
|
|
}
|
|
|
|
func newWatcher() (source.Watcher, error) {
|
|
return &watcher{exit: make(chan struct{})}, nil
|
|
}
|