Do not announce when listing torrents

This commit is contained in:
Igor Katson 2023-12-05 23:31:04 +00:00
parent c3eb03c72d
commit bc243143e5
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 30 additions and 23 deletions

View file

@ -20,7 +20,6 @@ use crate::{Dht, DhtConfig, DhtState};
pub struct PersistentDhtConfig {
pub dump_interval: Option<Duration>,
pub config_filename: Option<PathBuf>,
pub announce_port: Option<u16>,
}
#[derive(Serialize, Deserialize)]
@ -118,7 +117,6 @@ impl PersistentDht {
routing_table,
listen_addr,
peer_store,
announce_port: config.announce_port,
..Default::default()
};
let dht = DhtState::with_config(dht_config).await?;