Skip to content

Commit

Permalink
chore(aliyundrive): change alert info
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 25, 2023
1 parent ec54831 commit 79df63d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
3 changes: 2 additions & 1 deletion drivers/aliyundrive/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ type Addition struct {
var config = driver.Config{
Name: "Aliyundrive",
DefaultRoot: "root",
Alert: `warning|Deprecated, no longer maintained and will be removed in a future version.
Alert: `warning|There may be an infinite loop bug in this driver.
Deprecated, no longer maintained and will be removed in a future version.
We recommend using the official driver AliyundriveOpen.`,
}

Expand Down
13 changes: 0 additions & 13 deletions drivers/aliyundrive_open/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type AliyundriveOpen struct {
model.Storage
Addition
base string
//cron *cron.Cron

AccessToken string
DriveId string
Expand All @@ -42,22 +41,10 @@ func (d *AliyundriveOpen) Init(ctx context.Context) error {
return err
}
d.DriveId = utils.Json.Get(res, "default_drive_id").ToString()
//d.cron = cron.NewCron(time.Hour * 2)
//d.cron.Do(func() {
// err := d.refreshToken()
// d.Status = err.Error()
// op.MustSaveDriverStorage(d)
// if err != nil {
// log.Errorf("%+v", err)
// }
//})
return nil
}

func (d *AliyundriveOpen) Drop(ctx context.Context) error {
//if d.cron != nil {
// d.cron.Stop()
//}
return nil
}

Expand Down

0 comments on commit 79df63d

Please sign in to comment.