set session persistence as None

This commit is contained in:
yggverse 2025-06-07 20:05:09 +03:00
parent e9442334aa
commit b68a5b3eda

View file

@ -49,6 +49,7 @@ async fn main() -> anyhow::Result<()> {
let session = librqbit::Session::new_with_opts(
std::path::PathBuf::new(),
SessionOptions {
persistence: None,
disable_dht: !argument.enable_dht,
disable_upload: !argument.enable_upload,
enable_upnp_port_forwarding: argument.enable_upnp_port_forwarding,