1
0
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:
包子 2021-08-16 10:53:06 +08:00 committed by GitHub
parent b44e47b087
commit 817c13a80c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {