chore: aria2 related function

This commit is contained in:
Noah Hsu
2022-06-20 20:34:58 +08:00
parent 4db25605e7
commit 6c552a9d62
9 changed files with 120 additions and 2 deletions

View File

@ -194,7 +194,7 @@ func Put(ctx context.Context, account driver.Driver, parentPath string, file mod
}
// if up is nil, set a default to prevent panic
if up == nil {
up = func(p float64) {}
up = func(p int) {}
}
return account.Put(ctx, parentDir, file, up)
}