1
0
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:
Milos Gajdos
2019-07-01 15:43:50 +01:00
parent cff46c3fd8
commit f6e064cdbd
3 changed files with 36 additions and 32 deletions

View File

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