From 3a7dbfc8e91605ddf4d7841239594be2698470d5 Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Mon, 24 Jun 2024 13:00:41 +0100 Subject: [PATCH] core: Make sure last manifest upload has retries --- core/uploader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/uploader.go b/core/uploader.go index 3971edd..ce32c1f 100644 --- a/core/uploader.go +++ b/core/uploader.go @@ -105,7 +105,7 @@ func Upload(input io.Reader, outputURI *url.URL, waitBetweenWrites, writeTimeout } // We have to do this final write, otherwise there might be final data that's arrived since the last periodic write - if _, _, err := uploadFileWithBackup(outputURI, fileContents, fields, writeTimeout, false, storageFallbackURLs); err != nil { + if _, _, err := uploadFileWithBackup(outputURI, fileContents, fields, writeTimeout, true, storageFallbackURLs); err != nil { // Don't ignore this error, since there won't be any further attempts to write return nil, fmt.Errorf("failed to write final save: %w", err) }