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(