Slow storage impl
This commit is contained in:
parent
45375fe2db
commit
d3413370d2
3 changed files with 71 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ use librqbit::{
|
|||
api::ApiAddTorrentResponse,
|
||||
http_api::{HttpApi, HttpApiOptions},
|
||||
http_api_client, librqbit_spawn,
|
||||
storage::{filesystem::FilesystemStorageFactory, slow::SlowStorageFactory},
|
||||
tracing_subscriber_config_utils::{init_logging, InitLoggingOptions},
|
||||
AddTorrent, AddTorrentOptions, AddTorrentResponse, Api, ListOnlyResponse,
|
||||
PeerConnectionOptions, Session, SessionOptions, TorrentStatsState,
|
||||
|
|
@ -376,6 +377,10 @@ async fn async_main(opts: Opts) -> anyhow::Result<()> {
|
|||
sub_folder: download_opts.sub_folder.clone(),
|
||||
initial_peers: download_opts.initial_peers.clone().map(|p| p.0),
|
||||
disable_trackers: download_opts.disable_trackers,
|
||||
storage_factory: Some(Box::new(SlowStorageFactory::new(Box::<
|
||||
FilesystemStorageFactory,
|
||||
>::default(
|
||||
)))),
|
||||
..Default::default()
|
||||
};
|
||||
let connect_to_existing = match client.validate_rqbit_server().await {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue