Do not announce when listing torrents
This commit is contained in:
parent
c3eb03c72d
commit
bc243143e5
5 changed files with 30 additions and 23 deletions
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue