namesys/routing.go imports dht package preventing dht.Quorum() from being used with a custom routing option #5957
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
P3
Low: Not priority right now
status/ready
Ready to be worked
Projects
If a user is using a custom routing option (like for example, we are using a modified DHT in openbazaar) and they pass in a
DhtRecordCount
tonamesys.Resolve
. The routing resolver will calldht.Quorum(int(options.DhtRecordCount))
however, thedht
package imported by routing.go is the native dht package and not the one set by the user. The quorum function doesn't apply the option to the custom routing option.I think the issue using a struct defined inside the package for
quorumOptionKey
rather than, say, a string.The text was updated successfully, but these errors were encountered: