mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Fixed router idempotency. Return registry.ErrWatchStopped from mdns reg
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package registry
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/micro/mdns"
|
||||
@@ -63,7 +62,7 @@ func (m *mdnsWatcher) Next() (*Result, error) {
|
||||
Service: service,
|
||||
}, nil
|
||||
case <-m.exit:
|
||||
return nil, errors.New("watcher stopped")
|
||||
return nil, ErrWatcherStopped
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user