aboutsummaryrefslogtreecommitdiff
path: root/weed/remote_storage/azure/azure_storage_client.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/remote_storage/azure/azure_storage_client.go')
-rw-r--r--weed/remote_storage/azure/azure_storage_client.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/weed/remote_storage/azure/azure_storage_client.go b/weed/remote_storage/azure/azure_storage_client.go
index 2fab3adb7..1a259a3e2 100644
--- a/weed/remote_storage/azure/azure_storage_client.go
+++ b/weed/remote_storage/azure/azure_storage_client.go
@@ -3,17 +3,17 @@ package azure
import (
"context"
"fmt"
+ "io"
+ "net/url"
+ "os"
+ "reflect"
+
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/pb/remote_pb"
"github.com/chrislusf/seaweedfs/weed/remote_storage"
"github.com/chrislusf/seaweedfs/weed/util"
- "io"
- "io/ioutil"
- "net/url"
- "os"
- "reflect"
)
func init() {
@@ -115,7 +115,7 @@ func (az *azureRemoteStorageClient) ReadFile(loc *remote_pb.RemoteStorageLocatio
bodyStream := downloadResponse.Body(azblob.RetryReaderOptions{MaxRetryRequests: 20})
defer bodyStream.Close()
- data, err = ioutil.ReadAll(bodyStream)
+ data, err = io.ReadAll(bodyStream)
if err != nil {
return nil, fmt.Errorf("failed to download file %s%s: %v", loc.Bucket, loc.Path, err)