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

Commit 3b4b6c9

Browse files
committed
[#1800] Add DHT extraction behavior to mobile build
1 parent 0f90ced commit 3b4b6c9

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)