summaryrefslogtreecommitdiffhomepage
path: root/docs/sources/lib.md
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2017-02-13 07:49:42 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-02-15 00:10:15 +0900
commit9a45ed09b0a1b55be1391e3e5ba0e008b776d262 (patch)
treecb7f53dd331a635a006c3cc1543f83f560d91a46 /docs/sources/lib.md
parent52356c26f821fdebb3fdf943a1b898a2d1b4d0db (diff)
cli: add current option to monitor commands
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/lib.md')
-rw-r--r--docs/sources/lib.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md
index 479f7d1e..e6bbd958 100644
--- a/docs/sources/lib.md
+++ b/docs/sources/lib.md
@@ -67,7 +67,7 @@ func main() {
}
// monitor new routes
- w := s.Watch(gobgp.WatchBestPath())
+ w := s.Watch(gobgp.WatchBestPath(false))
for {
select {
case ev := <-w.Event():