summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-30 20:25:35 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-12-30 20:25:35 +0900
commit7e7b78e775bb40e0998418c5c294ed2668e3ea1a (patch)
treefef0f5d28ec733077ddd4115dbf7362561420302 /table/destination.go
parentebd6f9a06639df996da8e4570b8c26b664bbbc1a (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.go4
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
}