Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

yandex: Make it use our http client so logging, bwlimit etc works properly

Nick Craig-Wood82b85431bd93
diff --git a/yandex/yandex.go b/yandex/yandex.go
index 4b279ee29..7f3a0ea93 100644
--- a/yandex/yandex.go
+++ b/yandex/yandex.go
@@ -118,7 +118,7 @@ func NewFs(name, root string) (fs.Fs, error) {
}
//create new client
- yandexDisk := yandex.NewClient(token.AccessToken)
+ yandexDisk := yandex.NewClient(token.AccessToken, fs.Config.Client())
f := &Fs{
yd: yandexDisk,