Skip to content

Commit 06bcce2

Browse files
committed
fix azure
1 parent b07665d commit 06bcce2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

azure/public.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import (
1616

1717
// PublishedStorage abstract file system with published files (actually hosted on Azure)
1818
type PublishedStorage struct {
19-
container azblob.ContainerURL
20-
prefix string
2119
az *azContext
2220
pathCache map[string]map[string]string
2321
}
@@ -185,7 +183,7 @@ func (storage *PublishedStorage) internalCopyOrMoveBlob(src, dst string, metadat
185183
if err != nil || leaseResp.StatusCode() != http.StatusCreated {
186184
return fmt.Errorf("error acquiring lease on source blob %s", srcBlobURL)
187185
}
188-
defer srcBlobURL.BreakLease(context.Background(), azblob.LeaseBreakNaturally, azblob.ModifiedAccessConditions{})
186+
defer func() { _, _ = srcBlobURL.BreakLease(context.Background(), azblob.LeaseBreakNaturally, azblob.ModifiedAccessConditions{}) }()
189187
srcBlobLeaseID := leaseResp.LeaseID()
190188

191189
copyResp, err := dstBlobURL.StartCopyFromURL(

0 commit comments

Comments
 (0)