Skip to content

Commit

Permalink
client/authority-discovery: Revert query interval change (paritytech#…
Browse files Browse the repository at this point in the history
…6897)

Revert the accidental query interval change from every one minute back
to every 10 minutes.
  • Loading branch information
mxinden authored Aug 14, 2020
1 parent 13b0650 commit eec7d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/authority-discovery/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ where
// External addresses of other authorities can change at any given point in time. The
// interval on which to query for external addresses of other authorities is a trade off
// between efficiency and performance.
let query_interval_duration = Duration::from_secs(60);
let query_interval_start = Instant::now() + LIBP2P_KADEMLIA_BOOTSTRAP_TIME;
let query_interval_duration = Duration::from_secs(10 * 60);
let query_interval = interval_at(query_interval_start, query_interval_duration);

// Querying 500 [`AuthorityId`]s takes ~1m on the Kusama DHT (10th of August 2020) when
Expand Down

0 comments on commit eec7d71

Please sign in to comment.