diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-29 12:58:51 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-29 13:01:10 +0900 |
commit | 56bfc93a38d9646b488bbc105a0c14f8166cfc19 (patch) | |
tree | a8b74e43e7d2f0434049cd6a658127a725625624 | |
parent | fddfcd9e42ec80eeaf1eb3bbdbf2fde10d74e3ce (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.go | 2 |
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() { |