"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
oauthutil: avoid panic when `*token` and `*ts.token` are the same
rkonfj451d7badf7ca
diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.goindex d3562e41a..7b0fb9d9d 100644--- a/lib/oauthutil/oauthutil.go+++ b/lib/oauthutil/oauthutil.go@@ -292,7 +292,7 @@ func (ts *TokenSource) Token() (*oauth2.Token, error) {if err != nil {return nil, fmt.Errorf("couldn't fetch token: %w", err)}- changed = changed || (*token != *ts.token)+ changed = changed || token.AccessToken != ts.token.AccessToken || token.RefreshToken != ts.token.RefreshToken || token.Expiry != ts.token.Expiryts.token = tokenif changed {// Bump on the expiry timer if it is set