Skip to content

Commit 209d7ce

Browse files
committed
chore(drivers/139): reduce upload retry attempts to 3
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
1 parent 00e0b1d commit 209d7ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/139/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ func (d *Yun139) Put(ctx context.Context, dstDir model.Obj, stream model.FileStr
941941
return nil
942942
},
943943
retry.Context(ctx),
944-
retry.Attempts(10),
944+
retry.Attempts(3),
945945
retry.DelayType(retry.BackOffDelay),
946946
retry.Delay(time.Second),
947947
)

drivers/139/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ func (d *Yun139) uploadPersonalParts(ctx context.Context, partInfos []PartInfo,
755755
return nil
756756
},
757757
retry.Context(ctx),
758-
retry.Attempts(10),
758+
retry.Attempts(3),
759759
retry.DelayType(retry.BackOffDelay),
760760
retry.Delay(time.Second),
761761
)

0 commit comments

Comments
 (0)