Skip to content

Commit

Permalink
tart pull: retry if we get URLError (#947)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Nov 15, 2024
1 parent cd0f238 commit b4de3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/tart/VMStorageOCI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class VMStorageOCI: PrunableStorage {

try await tmpVMDir.pullFromRegistry(registry: registry, manifest: manifest, concurrency: concurrency, localLayerCache: localLayerCache, deduplicate: deduplicate)
} recoverFromFailure: { error in
if error is Retryable {
if error is URLError {
print("Error: \(error.localizedDescription)")
print("Attempting to re-try...")

Expand Down

0 comments on commit b4de3be

Please sign in to comment.