Skip to content

Commit

Permalink
chore: update dual dht
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Aug 21, 2020
1 parent f97ca81 commit ff9ef51
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 235 deletions.
5 changes: 3 additions & 2 deletions core/node/libp2p/routingopt.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ func constructDHTRouting(mode dht.ModeOpt) func(
) (routing.Routing, error) {
return dual.New(
ctx, host,
dual.DHTOption(
dht.Concurrency(10),
dht.Mode(mode),
dht.Datastore(dstore),
dht.Validator(validator),
dht.BootstrapPeers(bootstrapPeers...),
dht.Validator(validator)),
dual.WanDHTOption(dht.BootstrapPeers(bootstrapPeers...), dht.RoutingTablePeerDiversityFilter(nil)),
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ require (
github.com/libp2p/go-libp2p-core v0.6.1
github.com/libp2p/go-libp2p-discovery v0.5.0
github.com/libp2p/go-libp2p-http v0.1.5
github.com/libp2p/go-libp2p-kad-dht v0.8.2
github.com/libp2p/go-libp2p-kbucket v0.4.2
github.com/libp2p/go-libp2p-kad-dht v0.8.4-0.20200821045718-ac3582f374a4
github.com/libp2p/go-libp2p-kbucket v0.4.6
github.com/libp2p/go-libp2p-loggables v0.1.0
github.com/libp2p/go-libp2p-mplex v0.2.4
github.com/libp2p/go-libp2p-noise v0.1.1
Expand Down
Loading

0 comments on commit ff9ef51

Please sign in to comment.