Skip to content

Commit 7565da9

Browse files
committed
fix: ipfs name resolve --dht-record-count flag uses correct type and now works
1 parent 692e9f5 commit 7565da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/commands/name/ipns.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Resolve the value of a dnslink:
9999
}
100100

101101
recursive, _ := req.Options[recursiveOptionName].(bool)
102-
rc, rcok := req.Options[dhtRecordCountOptionName].(int)
102+
rc, rcok := req.Options[dhtRecordCountOptionName].(uint)
103103
dhtt, dhttok := req.Options[dhtTimeoutOptionName].(string)
104104
stream, _ := req.Options[streamOptionName].(bool)
105105

@@ -111,7 +111,7 @@ Resolve the value of a dnslink:
111111
opts = append(opts, options.Name.ResolveOption(nsopts.Depth(1)))
112112
}
113113
if rcok {
114-
opts = append(opts, options.Name.ResolveOption(nsopts.DhtRecordCount(uint(rc))))
114+
opts = append(opts, options.Name.ResolveOption(nsopts.DhtRecordCount(rc)))
115115
}
116116
if dhttok {
117117
d, err := time.ParseDuration(dhtt)

0 commit comments

Comments
 (0)