From 71e56c542e6a167dc3cd983aae2881a3c24c162a Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 10 Jul 2018 14:06:08 +0900 Subject: rpc cleanup - clean up RPC function names - rewrite gobgp command to use the api instead of config package - delete unused client package Signed-off-by: FUJITA Tomonori --- internal/pkg/table/message_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/pkg/table/message_test.go') diff --git a/internal/pkg/table/message_test.go b/internal/pkg/table/message_test.go index 28a380fe..8b3287d3 100644 --- a/internal/pkg/table/message_test.go +++ b/internal/pkg/table/message_test.go @@ -480,7 +480,7 @@ func TestBMP(t *testing.T) { } func unreachIndex(msgs []*bgp.BGPMessage) int { - for i, _ := range msgs { + for i := range msgs { for _, a := range msgs[i].Body.(*bgp.BGPUpdate).PathAttributes { if a.GetType() == bgp.BGP_ATTR_TYPE_MP_UNREACH_NLRI { return i -- cgit v1.2.3