diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-30 20:25:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-30 20:25:35 +0900 |
commit | 7e7b78e775bb40e0998418c5c294ed2668e3ea1a (patch) | |
tree | fef0f5d28ec733077ddd4115dbf7362561420302 /table/destination.go | |
parent | ebd6f9a06639df996da8e4570b8c26b664bbbc1a (diff) |
table: use Path as API instead of destination
ProcessPaths and DeletePathsforPeer API uses both Path and Destination
for outside. There is no good reason to use Destination. Let's use
Path.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/table/destination.go b/table/destination.go index 84643959..89bbab54 100644 --- a/table/destination.go +++ b/table/destination.go @@ -58,7 +58,7 @@ type Destination interface { setBestPathReason(string) getBestPath() Path setBestPath(path Path) - GetOldBestPath() Path + getOldBestPath() Path setOldBestPath(path Path) getKnownPathList() []Path setKnownPathList([]Path) @@ -140,7 +140,7 @@ func (dd *DestinationDefault) setBestPath(path Path) { } } -func (dd *DestinationDefault) GetOldBestPath() Path { +func (dd *DestinationDefault) getOldBestPath() Path { return dd.oldBestPath } |