MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / SetRetry

Method SetRetry

internal/fs/put.go:53–59  ·  view source on GitHub ↗
(retry int, maxRetry int)

Source from the content-addressed store, hash-verified

51}
52
53func (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
61var UploadTaskManager *tache.Manager[*UploadTask]
62

Callers

nothing calls this directly

Calls 3

GetStateMethod · 0.80
AddTaskMethod · 0.80
GetStorageMethod · 0.65

Tested by

no test coverage detected