summaryrefslogtreecommitdiffhomepage
path: root/server/zclient.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2017-02-13 06:30:58 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-02-15 00:10:15 +0900
commit52356c26f821fdebb3fdf943a1b898a2d1b4d0db (patch)
tree0ebe5f222851168489f9118eeb77f71547d5ccb6 /server/zclient.go
parentf276279bf6d90b3f5940bc63780cc3483e9d734e (diff)
server: add a current option to WatchBestPath()
also, use it for zebra integration Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/zclient.go')
-rw-r--r--server/zclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/zclient.go b/server/zclient.go
index df92f038..5f81cfcf 100644
--- a/server/zclient.go
+++ b/server/zclient.go
@@ -177,7 +177,7 @@ func (z *zebraClient) stop() {
}
func (z *zebraClient) loop() {
- w := z.server.Watch(WatchBestPath())
+ w := z.server.Watch(WatchBestPath(true))
defer func() { w.Stop() }()
for {