Skip to content

Commit

Permalink
Makes the actual implementation of fetch_archive private again
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucassifoni committed Jan 10, 2025
1 parent 0b64ff1 commit 0c02c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nodelix/version_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ defmodule Nodelix.VersionManager do
computed_checksum == checksum or raise "invalid checksum"
end

def fetch_archive(version, _url, max_retries, tries, _fetch_fun) when tries >= max_retries do
defp fetch_archive(version, _url, max_retries, tries, _fetch_fun) when tries >= max_retries do
Logger.debug("[Nodelix] Fetching node #{version}  failed after #{tries} attempts.")
{:error, :max_retries_exceeded}
end

def fetch_archive(version, archive_base_url, max_retries, tries, fetch_fun) do
defp fetch_archive(version, archive_base_url, max_retries, tries, fetch_fun) do
archive_url = get_url(archive_base_url, version)
%{archive: archive_path} = paths(version)

Expand Down

0 comments on commit 0c02c51

Please sign in to comment.