Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
[#1800] Add DHT extraction behavior to mobile build
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Nov 7, 2019
1 parent 0f90ced commit 3b4b6c9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mobile/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,8 @@ func (n *Node) start() error {
}
var dhtRouting *dht.IpfsDHT
for _, router := range tiered.Routers {
if r, ok := router.(*ipfs.CachingRouter); ok {
dhtRouting, err = r.DHT()
if err != nil {
return err
}
if r, ok := router.(*dht.IpfsDHT); ok {
dhtRouting = r
}
}
if dhtRouting == nil {
Expand Down

0 comments on commit 3b4b6c9

Please sign in to comment.