mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
fix: ipfs name resolve --dht-record-count flag uses correct type and now works
This commit is contained in:
parent
692e9f59ff
commit
7565da9bc2
@ -99,7 +99,7 @@ Resolve the value of a dnslink:
|
||||
}
|
||||
|
||||
recursive, _ := req.Options[recursiveOptionName].(bool)
|
||||
rc, rcok := req.Options[dhtRecordCountOptionName].(int)
|
||||
rc, rcok := req.Options[dhtRecordCountOptionName].(uint)
|
||||
dhtt, dhttok := req.Options[dhtTimeoutOptionName].(string)
|
||||
stream, _ := req.Options[streamOptionName].(bool)
|
||||
|
||||
@ -111,7 +111,7 @@ Resolve the value of a dnslink:
|
||||
opts = append(opts, options.Name.ResolveOption(nsopts.Depth(1)))
|
||||
}
|
||||
if rcok {
|
||||
opts = append(opts, options.Name.ResolveOption(nsopts.DhtRecordCount(uint(rc))))
|
||||
opts = append(opts, options.Name.ResolveOption(nsopts.DhtRecordCount(rc)))
|
||||
}
|
||||
if dhttok {
|
||||
d, err := time.ParseDuration(dhtt)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user