diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-29 18:27:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-10-29 18:27:37 +0900 |
commit | c8694bc8a7dccd663689f8d134b89fe3a1f37d70 (patch) | |
tree | 2539bed4de902626cdacad748caddbd4294d5919 /pkg/server/fsm_test.go | |
parent | 0b4d946298c6aca479dc79b578adb9ae0da1a850 (diff) |
server: unexport Peer adn PeerGroup
No need to export them. Also fixed golint errors.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg/server/fsm_test.go')
-rw-r--r-- | pkg/server/fsm_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/server/fsm_test.go b/pkg/server/fsm_test.go index dad6563a..e7daa9b6 100644 --- a/pkg/server/fsm_test.go +++ b/pkg/server/fsm_test.go @@ -308,8 +308,8 @@ func TestCheckOwnASLoop(t *testing.T) { assert.False(hasOwnASLoop(65200, 0, aspath)) } -func makePeerAndHandler() (*Peer, *FSMHandler) { - p := &Peer{ +func makePeerAndHandler() (*peer, *FSMHandler) { + p := &peer{ fsm: NewFSM(&config.Global{}, &config.Neighbor{}, table.NewRoutingPolicy()), outgoing: channels.NewInfiniteChannel(), } |