Feat/improve fee history performance (#5182)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Nil Medvedev
2023-11-27 10:59:27 +00:00
committed by GitHub
parent 57653b1a58
commit 563a683a62
18 changed files with 490 additions and 124 deletions

View File

@ -92,7 +92,7 @@ impl BodiesClient for TestBodiesClient {
Box::pin(async move {
if should_respond_empty {
return Ok((PeerId::default(), vec![]).into());
return Ok((PeerId::default(), vec![]).into())
}
if should_delay {

View File

@ -252,7 +252,7 @@ impl SharedCapability {
/// Returns an error if the offset is equal or less than [`MAX_RESERVED_MESSAGE_ID`].
pub(crate) fn new(name: &str, version: u8, offset: u8) -> Result<Self, SharedCapabilityError> {
if offset <= MAX_RESERVED_MESSAGE_ID {
return Err(SharedCapabilityError::ReservedMessageIdOffset(offset));
return Err(SharedCapabilityError::ReservedMessageIdOffset(offset))
}
match name {