Well, it doesnt crash at least
This commit is contained in:
parent
276a1e175e
commit
efcffdd072
6 changed files with 101 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{net::SocketAddr, sync::Arc};
|
||||
use std::{collections::HashSet, net::SocketAddr, sync::Arc};
|
||||
|
||||
use anyhow::Context;
|
||||
use buffers::ByteBufOwned;
|
||||
|
|
@ -122,6 +122,18 @@ impl Api {
|
|||
Ok(Default::default())
|
||||
}
|
||||
|
||||
pub fn api_torrent_action_update_only_files(
|
||||
&self,
|
||||
idx: TorrentId,
|
||||
only_files: &HashSet<usize>,
|
||||
) -> Result<EmptyJsonResponse> {
|
||||
let handle = self.mgr_handle(idx)?;
|
||||
self.session
|
||||
.update_only_files(&handle, only_files)
|
||||
.context("error updating only_files")?;
|
||||
Ok(Default::default())
|
||||
}
|
||||
|
||||
pub fn api_set_rust_log(&self, new_value: String) -> Result<EmptyJsonResponse> {
|
||||
let tx = self
|
||||
.rust_log_reload_tx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue