Skip to content

Commit

Permalink
fix break in router service
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jan 19, 2020
1 parent 97928e8 commit ed2bd68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions router/service/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ 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) {
w := &watcher{
opts: opts,
resChan: make(chan *router.Event),
done: make(chan struct{}),
stream: rsp,
}

go func() {
Expand Down

0 comments on commit ed2bd68

Please sign in to comment.