Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor committed Oct 17, 2024
1 parent 2652dc2 commit 720538f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd-car-split.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func SortCarURLs(carURLs []string) ([]string, error) {
}

func getFirstSlotFromURL(url string) (int64, error) {
fileSize, err := getFileSize(url)
fileSize, err := getUrlFileSize(url)
if err != nil {
return 0, fmt.Errorf("failed to get file size: %w", err)
}
Expand Down Expand Up @@ -672,7 +672,7 @@ func getFirstSlotFromURL(url string) (int64, error) {
return int64(subset.First), nil
}

func getFileSize(url string) (int64, error) {
func getUrlFileSize(url string) (int64, error) {
headResp, err := http.Head(url)
if err != nil {
return 0, fmt.Errorf("failed to make HEAD request: %w", err)
Expand Down

0 comments on commit 720538f

Please sign in to comment.