summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-29 12:58:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-29 13:01:10 +0900
commit56bfc93a38d9646b488bbc105a0c14f8166cfc19 (patch)
treea8b74e43e7d2f0434049cd6a658127a725625624
parentfddfcd9e42ec80eeaf1eb3bbdbf2fde10d74e3ce (diff)
gobgp: mrt inject increase the number of channel
Make work faster if possible (with consuming more memory). The number is near the full destinations. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--gobgp/mrt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgp/mrt.go b/gobgp/mrt.go
index bfbed87a..6a5f3df8 100644
--- a/gobgp/mrt.go
+++ b/gobgp/mrt.go
@@ -206,7 +206,7 @@ func injectMrt(r string, filename string, count int) error {
idx := 0
- ch := make(chan *api.ModPathArguments, 1024)
+ ch := make(chan *api.ModPathArguments, 1<<20)
go func() {