mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-16 02:47:03 +02:00
fix: code style (#1342)
This commit is contained in:
parent
b44e47b087
commit
817c13a80c
6
config/env/watcher.go
vendored
6
config/env/watcher.go
vendored
@ -20,10 +20,8 @@ func NewWatcher() (config.Watcher, error) {
|
||||
|
||||
// Next will be blocked until the Stop method is called
|
||||
func (w *watcher) Next() ([]*config.KeyValue, error) {
|
||||
select {
|
||||
case <-w.ctx.Done():
|
||||
return nil, w.ctx.Err()
|
||||
}
|
||||
<-w.ctx.Done()
|
||||
return nil, w.ctx.Err()
|
||||
}
|
||||
|
||||
func (w *watcher) Stop() error {
|
||||
|
Loading…
Reference in New Issue
Block a user