(retry int, maxRetry int)
| 51 | } |
| 52 | |
| 53 | func (t *UploadTask) SetRetry(retry int, maxRetry int) { |
| 54 | t.TaskExtension.SetRetry(retry, maxRetry) |
| 55 | if retry == 0 && |
| 56 | (t.GetErr() == nil && t.GetState() != tache.StatePending) { // 手动重试 |
| 57 | task_group.TransferCoordinator.AddTask(stdpath.Join(t.storage.GetStorage().MountPath, t.dstDirActualPath), nil) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | var UploadTaskManager *tache.Manager[*UploadTask] |
| 62 |
nothing calls this directly
no test coverage detected