mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 08:14:03 +00:00
Azure: Use default HTTP transport
This commit is contained in:
parent
d973aa82fe
commit
618ce115d7
@ -3,6 +3,7 @@ package azure
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"io"
|
"io"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
@ -35,6 +36,8 @@ func open(cfg Config) (*Backend, error) {
|
|||||||
return nil, errors.Wrap(err, "NewBasicClient")
|
return nil, errors.Wrap(err, "NewBasicClient")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client.HTTPClient = &http.Client{Transport: backend.Transport()}
|
||||||
|
|
||||||
service := client.GetBlobService()
|
service := client.GetBlobService()
|
||||||
|
|
||||||
sem, err := backend.NewSemaphore(cfg.Connections)
|
sem, err := backend.NewSemaphore(cfg.Connections)
|
||||||
|
Loading…
Reference in New Issue
Block a user