Fix the proxy watcher

This commit is contained in:
Asim Aslam
2019-09-20 16:25:29 +01:00
parent 46450ba507
commit 4eb1aaae85
4 changed files with 18 additions and 8 deletions

View File

@@ -164,7 +164,7 @@ func (r *Router) Watch(ctx context.Context, req *pb.WatchRequest, stream pb.Rout
for {
event, err := watcher.Next()
if err == router.ErrWatcherStopped {
break
return errors.InternalServerError("go.micro.router", "watcher stopped")
}
if err != nil {