Created more tasks but it impacts perf and memory badly
This commit is contained in:
parent
91c99a272f
commit
93740ec84b
3 changed files with 126 additions and 74 deletions
|
|
@ -16,6 +16,8 @@ pub type Dht = Arc<DhtState>;
|
|||
|
||||
// How long do we wait for a response from a DHT node.
|
||||
pub(crate) const RESPONSE_TIMEOUT: Duration = Duration::from_secs(60);
|
||||
// TODO: Not sure if we should re-query tbh.
|
||||
pub(crate) const REQUERY_INTERVAL: Duration = Duration::from_secs(60);
|
||||
// After how long should we ping the node again.
|
||||
pub(crate) const INACTIVITY_TIMEOUT: Duration = Duration::from_secs(15 * 60);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue