mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05:17 +00:00
add recoery log
This commit is contained in:
parent
2262bc3fb9
commit
7466be219f
@ -274,6 +274,8 @@ impl LogEntryFetcher {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
debug!("recover finished");
|
||||
},
|
||||
"log recover",
|
||||
);
|
||||
|
@ -1,6 +1,6 @@
|
||||
use ethers::prelude::{Filter, JsonRpcClient, Log, Middleware, Provider, ProviderError, U64};
|
||||
use futures_core::stream::Stream;
|
||||
use jsonrpsee::tracing::trace;
|
||||
use jsonrpsee::tracing::{debug, trace};
|
||||
use std::future::Future;
|
||||
use std::time::Duration;
|
||||
use std::{
|
||||
@ -128,6 +128,10 @@ where
|
||||
.from_block(from_block)
|
||||
.to_block(to_block);
|
||||
let provider = self.provider;
|
||||
debug!(
|
||||
"log_query: from_block={} last_block={}",
|
||||
from_block, to_block
|
||||
);
|
||||
// load first page of logs
|
||||
#[allow(clippy::redundant_async_block)]
|
||||
let fut = Box::pin(async move {
|
||||
@ -177,6 +181,10 @@ where
|
||||
.from_block(from_block)
|
||||
.to_block(to_block);
|
||||
let provider = self.provider;
|
||||
debug!(
|
||||
"log_query: from_block={} last_block={}",
|
||||
from_block, to_block
|
||||
);
|
||||
#[allow(clippy::redundant_async_block)]
|
||||
let fut = Box::pin(async move {
|
||||
tokio::time::sleep(delay).await;
|
||||
|
Loading…
Reference in New Issue
Block a user