hot fix on rate limit issue

This commit is contained in:
Peter Zhang 2024-05-22 19:33:15 +08:00
parent cf13901798
commit 3e5687bf84
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ use crate::config::{MineServiceMiddleware, MinerConfig};
const DB_QUERY_PERIOD_ON_NO_TASK: u64 = 1;
const DB_QUERY_PERIOD_ON_ERROR: u64 = 5;
const CHAIN_STATUS_QUERY_PERIOD: u64 = 5;
const CHAIN_STATUS_QUERY_PERIOD: u64 = 15;
pub struct Sealer {
flow_contract: ZgsFlow<MineServiceMiddleware>,

View File

@ -72,7 +72,7 @@ impl MineContextWatcher {
let mut mining_enabled = true;
let mut channel_opened = true;
let mut mining_throttle = sleep(Duration::from_secs(0));
let mut mining_throttle = sleep(Duration::from_secs(15));
tokio::pin!(mining_throttle);
loop {