feature: allow multi-torrent priority change

This commit is contained in:
Jesse Chan
2020-10-04 20:59:30 +08:00
parent 4bd090d0bb
commit 5e1c09153c
9 changed files with 89 additions and 61 deletions
-9
View File
@@ -238,15 +238,6 @@ class ClientRequest {
});
}
setPriority(options) {
const hashes = getEnsuredArray(options.hashes);
hashes.forEach((hash) => {
this.requests.push(getMethodCall('d.priority.set', [hash, options.priority]));
this.requests.push(getMethodCall('d.update_priorities', [hash]));
});
}
setSettings(options) {
const settings = getEnsuredArray(options.settings);