Skip to content

Commit e2f5cb1

Browse files
committed
remove usage of uint
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com>
1 parent b93a625 commit e2f5cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/scripts/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)