summaryrefslogtreecommitdiffhomepage
path: root/docs/sources
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sources')
-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 4fac54de..b1f80ca1 100644
--- a/docs/sources/lib.md
+++ b/docs/sources/lib.md
@@ -25,7 +25,7 @@ func main() {
// start grpc api server. this is not mandatory
// but you will be able to use `gobgp` cmd with this.
- g := gobgp.NewGrpcServer(":50051", s.GrpcReqCh)
+ g := gobgp.NewGrpcServer(s, ":50051", s.GrpcReqCh)
go g.Serve()
// global configuration