Skip to content

Commit

Permalink
fix: fix wrong use of dht randomwalk boolean option
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Jan 26, 2022
1 parent c6cdfdd commit c1861a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/internal/initutil/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (m *Manager) getLocalIPFS() (ipfsutil.ExtendedCoreAPI, *ipfs_core.IpfsNode,
if dhtmode > 0 && !m.Node.Protocol.DisableIPFSNetwork {
dhtopts := []p2p_dht.Option{p2p_dht.Concurrency(5)}

if m.Node.Protocol.DHTRandomWalk {
if !m.Node.Protocol.DHTRandomWalk {
dhtopts = append(dhtopts, p2p_dht.DisableAutoRefresh())
}
routing = ipfsutil.CustomRoutingOption(dhtmode, dhtopts...)
Expand Down

0 comments on commit c1861a5

Please sign in to comment.