fix(aliyundrive): error occurred when running multiple instances at the same time (#3448)

* fix(aliyundrive):an error occurred when running multiple instances at the same time

* Update util.go

fix(aliyunpan):clear retry count
This commit is contained in:
foxxorcat
2023-02-16 22:12:19 +08:00
committed by GitHub
parent 236c17176c
commit 7d1034c569
3 changed files with 21 additions and 39 deletions

View File

@ -71,14 +71,14 @@ func (d *AliDrive) Init(ctx context.Context) error {
// init privateKey
privateKey, _ := NewPrivateKeyFromHex(deviceID)
state := State{
nonce: -1,
privateKey: privateKey,
deviceID: deviceID,
}
// store state
global.Store(d.UserID, &state)
// init signature
return d.reSign()
d.sign()
return nil
}
func (d *AliDrive) Drop(ctx context.Context) error {