Skip to content

Commit

Permalink
mdns ttl to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeguglielmo committed Nov 22, 2023
1 parent a3721f7 commit c151eae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dht-cache/src/domocache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ impl DomoCache {
}
}

for to_r in to_remove {
for to_r in to_remove {
self.peers_caches_state.remove(&to_r);
}
}



Expand Down
2 changes: 1 addition & 1 deletion dht-cache/src/domolibp2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub async fn start(
.with_behaviour(|key| {

let mdnsconf = mdns::Config {
ttl: Duration::from_secs(100),
ttl: Duration::from_secs(10),
query_interval: Duration::from_secs(5),
enable_ipv6: false
};
Expand Down

0 comments on commit c151eae

Please sign in to comment.