Skip to content

Commit

Permalink
add RoutingTable func (ipfs#217)
Browse files Browse the repository at this point in the history
* add RoutingTable func

* fix gofmt
  • Loading branch information
qizheng09 authored and anacrolix committed Jan 22, 2019
1 parent 70d5802 commit 9d60a68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ func (dht *IpfsDHT) Process() goprocess.Process {
return dht.proc
}

// RoutingTable return dht's routingTable
func (dht *IpfsDHT) RoutingTable() *kb.RoutingTable {
return dht.routingTable
}

// Close calls Process Close
func (dht *IpfsDHT) Close() error {
return dht.proc.Close()
Expand Down

0 comments on commit 9d60a68

Please sign in to comment.