diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-04-08 20:05:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-07 21:18:04 +0900 |
commit | 957917651e48e552491d9a6272db296cb5c0a295 (patch) | |
tree | 52c4bdbafc749c4bfa8e3d59d171802c1341189c /server/server_test.go | |
parent | ee91af5b638755a19c6954579b77a28916fb9bff (diff) |
table: remove withdraw/newPath/oldPath Lists in Destination
Shrink memory usage.
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 720202d0..0bbd4070 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -269,7 +269,7 @@ func newPeerandInfo(myAs, as uint32, address string, rib *table.TableManager) (* } func process(rib *table.TableManager, l []*table.Path) (*table.Path, *table.Path) { - dsts := make([]*table.Destination, 0) + dsts := make([]*table.Update, 0) for _, path := range l { dsts = append(dsts, rib.Update(path)...) } |