fix break in router service
This commit is contained in:
parent
97928e88f8
commit
ed2bd68d28
@ -14,6 +14,7 @@ type watcher struct {
|
|||||||
opts router.WatchOptions
|
opts router.WatchOptions
|
||||||
resChan chan *router.Event
|
resChan chan *router.Event
|
||||||
done chan struct{}
|
done chan struct{}
|
||||||
|
stream pb.Router_WatchService
|
||||||
}
|
}
|
||||||
|
|
||||||
func newWatcher(rsp pb.Router_WatchService, opts router.WatchOptions) (*watcher, error) {
|
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,
|
opts: opts,
|
||||||
resChan: make(chan *router.Event),
|
resChan: make(chan *router.Event),
|
||||||
done: make(chan struct{}),
|
done: make(chan struct{}),
|
||||||
|
stream: rsp,
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user