This commit is contained in:
Fallengirl 2025-03-24 17:05:03 +08:00 committed by GitHub
commit 26642fedf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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
})

View File

@ -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 {

View File

@ -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)?;