Modify MessageCache constants

This commit is contained in:
Sosthene 2024-10-04 09:21:38 +02:00
parent 7b34096940
commit 0f726d70be

View File

@ -14,8 +14,8 @@ use crate::{faucet::handle_faucet_request, handle_new_tx_request, PEERMAP};
pub(crate) static MESSAGECACHE: OnceLock<MessageCache> = OnceLock::new();
const MESSAGECACHEDURATION: Duration = Duration::from_secs(10);
const MESSAGECACHEINTERVAL: Duration = Duration::from_secs(2);
const MESSAGECACHEDURATION: Duration = Duration::from_secs(20);
const MESSAGECACHEINTERVAL: Duration = Duration::from_secs(5);
#[derive(Debug)]
pub(crate) struct MessageCache {