diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-04-20 15:31:27 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-04-20 15:31:27 +0900 |
commit | 7fc795694637c06be52cad97cf7397db0c7431fb (patch) | |
tree | 9b4baa7d88122b2b0370758cf2b4c5aba8de8a6f /server/server_test.go | |
parent | e429c1aaf4dd85459dfafc1a5efac9d4778370f6 (diff) |
improve performance of getting single neighbor information
avoid calculation of the number of adjout that will not be used.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server_test.go')
-rw-r--r-- | server/server_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server_test.go b/server/server_test.go index 3aaa7374..9caf8a62 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -109,7 +109,7 @@ func TestMonitor(test *testing.T) { for { time.Sleep(time.Second) - if t.GetNeighbor(false)[0].State.SessionState == config.SESSION_STATE_ESTABLISHED { + if t.GetNeighbor("", false)[0].State.SessionState == config.SESSION_STATE_ESTABLISHED { break } } |