From 06bcce22d4db2bd4077c82be04047e884f99af2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 14 Jun 2026 23:57:31 +0200 Subject: [PATCH] fix azure --- azure/public.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/azure/public.go b/azure/public.go index 8a4809ef..057e469e 100644 --- a/azure/public.go +++ b/azure/public.go @@ -16,8 +16,6 @@ import ( // PublishedStorage abstract file system with published files (actually hosted on Azure) type PublishedStorage struct { - container azblob.ContainerURL - prefix string az *azContext pathCache map[string]map[string]string } @@ -185,7 +183,7 @@ func (storage *PublishedStorage) internalCopyOrMoveBlob(src, dst string, metadat if err != nil || leaseResp.StatusCode() != http.StatusCreated { return fmt.Errorf("error acquiring lease on source blob %s", srcBlobURL) } - defer srcBlobURL.BreakLease(context.Background(), azblob.LeaseBreakNaturally, azblob.ModifiedAccessConditions{}) + defer func() { _, _ = srcBlobURL.BreakLease(context.Background(), azblob.LeaseBreakNaturally, azblob.ModifiedAccessConditions{}) }() srcBlobLeaseID := leaseResp.LeaseID() copyResp, err := dstBlobURL.StartCopyFromURL(