perf: extract fs func and add error log

This commit is contained in:
Noah Hsu
2022-06-23 23:03:11 +08:00
parent 40b7ecc845
commit 956a5ae906
9 changed files with 185 additions and 92 deletions

View File

@ -99,7 +99,6 @@ var TransferTaskManager = task.NewTaskManager[uint64](3, func(k *uint64) {
func (m *Monitor) Complete() error {
// check dstDir again
account, dstDirActualPath, err := operations.GetAccountAndActualPath(m.dstDirPath)
println("dstDirActualPath:", dstDirActualPath)
if err != nil {
return errors.WithMessage(err, "failed get account")
}