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

Commit 863d0fc

Browse files
authored
Merge pull request #1854 from OpenBazaar/v0.13.6-rc
Add DHT extraction behavior to mobile build
2 parents 78075df + 3b4b6c9 commit 863d0fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mobile/node.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,8 @@ func (n *Node) start() error {
367367
}
368368
var dhtRouting *dht.IpfsDHT
369369
for _, router := range tiered.Routers {
370-
if r, ok := router.(*ipfs.CachingRouter); ok {
371-
dhtRouting, err = r.DHT()
372-
if err != nil {
373-
return err
374-
}
370+
if r, ok := router.(*dht.IpfsDHT); ok {
371+
dhtRouting = r
375372
}
376373
}
377374
if dhtRouting == nil {

0 commit comments

Comments
 (0)