File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ func applyFlatfsServer(conf *config.Config) error {
188188
189189// setFlatfsShardFunc Attempts to update the given flatfs configuration to use a shardFunc
190190// with the given `n`. If unsuccessful, false will be returned.
191- func setFlatfsShardFunc (conf * config.Config , n uint8 ) error {
191+ func setFlatfsShardFunc (conf * config.Config , n int8 ) error {
192192 // we want to use next-to-last/3 as the sharding function
193193 // as per this issue:
194194 // https://github.com/redhat-et/ipfs-operator/issues/32
@@ -216,7 +216,7 @@ func setFlatfsShardFunc(conf *config.Config, n uint8) error {
216216 continue
217217 }
218218 if dsType == "flatfs" {
219- child ["shardFunc" ] = "/repo/flatfs/shard/v1/next-to-last/" + strconv .FormatUint ( uint64 (n ), 10 )
219+ child ["shardFunc" ] = "/repo/flatfs/shard/v1/next-to-last/" + strconv .FormatInt ( int64 (n ), 10 )
220220 break
221221 }
222222 }
You can’t perform that action at this time.
0 commit comments