mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-01 14:06:10 +00:00
Merge 03e071a676
into 74074dfa2f
This commit is contained in:
commit
26642fedf7
@ -50,7 +50,7 @@ impl DataCache {
|
||||
|
||||
/// Remove timeout data entries according to TTL.
|
||||
pub fn garbage_collect(&mut self, latest_tx_seq: u64) {
|
||||
// We won't keep too many data, so it's okay to just iterate here.
|
||||
// We won't keep too much data, so it's okay to just iterate here.
|
||||
self.root_to_data.retain(|_, cached| {
|
||||
cached.last_seen_tx_seq + self.config.tx_seq_ttl as u64 >= latest_tx_seq
|
||||
})
|
||||
|
@ -673,7 +673,7 @@ async fn check_watch_process(
|
||||
}
|
||||
} else {
|
||||
warn!(
|
||||
"get block hash for block {} from RPC, assume there is no org",
|
||||
"get block hash for block {} from RPC, assume there is no reorg",
|
||||
*progress - 1
|
||||
);
|
||||
let hash = loop {
|
||||
|
@ -66,7 +66,7 @@ impl Encoder<RPCCodedResponse> for SSZSnappyInboundCodec {
|
||||
}
|
||||
|
||||
// Inserts the length prefix of the uncompressed bytes into dst
|
||||
// encoded as a unsigned varint
|
||||
// encoded as an unsigned varint
|
||||
self.inner
|
||||
.encode(bytes.len(), dst)
|
||||
.map_err(RPCError::from)?;
|
||||
|
Loading…
Reference in New Issue
Block a user