Skip to content

Commit 370a6c1

Browse files
authored
fix(baidu_netdisk): remove duplicate retry (#7972)
1 parent 2570707 commit 370a6c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/baidu_netdisk/driver.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"github.com/alist-org/alist/v3/internal/model"
2121
"github.com/alist-org/alist/v3/pkg/errgroup"
2222
"github.com/alist-org/alist/v3/pkg/utils"
23-
"github.com/avast/retry-go"
2423
log "github.com/sirupsen/logrus"
2524
)
2625

@@ -261,10 +260,7 @@ func (d *BaiduNetdisk) Put(ctx context.Context, dstDir model.Obj, stream model.F
261260
}
262261
}
263262
// step.2 上传分片
264-
threadG, upCtx := errgroup.NewGroupWithContext(ctx, d.uploadThread,
265-
retry.Attempts(3),
266-
retry.Delay(time.Second),
267-
retry.DelayType(retry.BackOffDelay))
263+
threadG, upCtx := errgroup.NewGroupWithContext(ctx, d.uploadThread)
268264
sem := semaphore.NewWeighted(3)
269265
for i, partseq := range precreateResp.BlockList {
270266
if utils.IsCanceled(upCtx) {

0 commit comments

Comments
 (0)