fix break in router service

This commit is contained in:
Asim Aslam 2020-01-19 23:22:41 +00:00
parent 97928e88f8
commit ed2bd68d28

View File

@ -14,6 +14,7 @@ type watcher struct {
opts router.WatchOptions
resChan chan *router.Event
done chan struct{}
stream pb.Router_WatchService
}
func newWatcher(rsp pb.Router_WatchService, opts router.WatchOptions) (*watcher, error) {
@ -21,6 +22,7 @@ func newWatcher(rsp pb.Router_WatchService, opts router.WatchOptions) (*watcher,
opts: opts,
resChan: make(chan *router.Event),
done: make(chan struct{}),
stream: rsp,
}
go func() {