Store initial_peers in state

This commit is contained in:
Igor Katson 2024-12-05 21:47:37 +00:00
parent e22132bba0
commit 8131ba0482
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,7 @@ mod streaming;
pub mod utils;
use std::collections::HashSet;
use std::net::SocketAddr;
use std::path::PathBuf;
use std::sync::atomic::Ordering;
use std::sync::Arc;
@ -105,6 +106,7 @@ pub(crate) struct ManagedTorrentOptions {
pub output_folder: PathBuf,
pub disk_write_queue: Option<DiskWorkQueueSender>,
pub ratelimits: LimitsConfig,
pub initial_peers: Vec<SocketAddr>,
#[cfg(feature = "disable-upload")]
pub _disable_upload: bool,
}