mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-02-05 11:45:19 +00:00
hot fix on rate limit issue
This commit is contained in:
parent
cf13901798
commit
3e5687bf84
@ -18,7 +18,7 @@ use crate::config::{MineServiceMiddleware, MinerConfig};
|
|||||||
|
|
||||||
const DB_QUERY_PERIOD_ON_NO_TASK: u64 = 1;
|
const DB_QUERY_PERIOD_ON_NO_TASK: u64 = 1;
|
||||||
const DB_QUERY_PERIOD_ON_ERROR: u64 = 5;
|
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 {
|
pub struct Sealer {
|
||||||
flow_contract: ZgsFlow<MineServiceMiddleware>,
|
flow_contract: ZgsFlow<MineServiceMiddleware>,
|
||||||
|
@ -72,7 +72,7 @@ impl MineContextWatcher {
|
|||||||
let mut mining_enabled = true;
|
let mut mining_enabled = true;
|
||||||
let mut channel_opened = 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);
|
tokio::pin!(mining_throttle);
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
Loading…
Reference in New Issue
Block a user