Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func parseSegmentKey(prefix, key string) (segmentKey, string, bool) {
return segmentKey{}, "", false
}
topic := parts[0]
partition, err := strconv.Atoi(parts[1])
partition, err := strconv.ParseInt(parts[1], 10, 32)
if err != nil {
return segmentKey{}, "", false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func (r *S3Resolver) Partitions(ctx context.Context, topic string) ([]int32, err
if raw == "" {
continue
}
value, err := strconv.Atoi(raw)
value, err := strconv.ParseInt(raw, 10, 32)
if err != nil {
continue
}
Expand Down