Skip to content

Commit

Permalink
Chore: use strconv.ParseInt() with 32bit when parsing ingester ID
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci committed Dec 10, 2024
1 parent 550afd2 commit 38ea4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/ingest/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func IngesterPartitionID(ingesterID string) (int32, error) {
}

// Parse the ingester sequence number.
ingesterSeq, err := strconv.Atoi(match[1])
ingesterSeq, err := strconv.ParseInt(match[1], 10, 32)
if err != nil {
return 0, fmt.Errorf("no ingester sequence number in ingester ID %s", ingesterID)
}
Expand Down

0 comments on commit 38ea4cf

Please sign in to comment.