mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/backup/azremote: fix after upgrading github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from v0.6.1 to v1.0.0
This commit is contained in:
parent
c9d2934bb4
commit
a8e88e74cc
1 changed files with 5 additions and 1 deletions
|
@ -173,7 +173,11 @@ func (fs *FS) CopyPart(srcFS common.OriginFS, p common.Part) error {
|
|||
Write: true,
|
||||
}
|
||||
|
||||
t, err := sbc.GetSASURL(ssCopyPermission, time.Now().Add(-10*time.Minute), time.Now().Add(30*time.Minute))
|
||||
startTime := time.Now().Add(-10 * time.Minute)
|
||||
o := &blob.GetSASURLOptions{
|
||||
StartTime: &startTime,
|
||||
}
|
||||
t, err := sbc.GetSASURL(ssCopyPermission, time.Now().Add(30*time.Minute), o)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to generate SAS token of src %q: %w", p.Path, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue