From 79df63d31901f997c11ddc913f1f1a956919bb2a Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sat, 25 Feb 2023 14:28:27 +0800 Subject: [PATCH] chore(aliyundrive): change alert info --- drivers/aliyundrive/meta.go | 3 ++- drivers/aliyundrive_open/driver.go | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/aliyundrive/meta.go b/drivers/aliyundrive/meta.go index fca323ca..9aee8569 100644 --- a/drivers/aliyundrive/meta.go +++ b/drivers/aliyundrive/meta.go @@ -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.`, } diff --git a/drivers/aliyundrive_open/driver.go b/drivers/aliyundrive_open/driver.go index a4ed61e3..2186f5c3 100644 --- a/drivers/aliyundrive_open/driver.go +++ b/drivers/aliyundrive_open/driver.go @@ -18,7 +18,6 @@ type AliyundriveOpen struct { model.Storage Addition base string - //cron *cron.Cron AccessToken string DriveId string @@ -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 }