e071084ebe
govulncheck / govulncheck (push) Waiting to run
Harness (E2E) / Harnesses (mock LLM) (push) Waiting to run
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Run Tests / Unit Tests (push) Waiting to run
Run Tests / Etcd Integration Tests (push) Waiting to run
25 lines
367 B
Go
25 lines
367 B
Go
package env
|
|
|
|
import (
|
|
"go-micro.dev/v6/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
|
|
}
|