From 56bfc93a38d9646b488bbc105a0c14f8166cfc19 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 29 Aug 2015 12:58:51 +0900 Subject: [PATCH] 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 --- gobgp/mrt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {