Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use caching layer when fetching blocks for logs #2350

Merged
merged 2 commits into from
Apr 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rustfmt
  • Loading branch information
mattsse committed Apr 23, 2023
commit af324640f65995aac75c1862499ab00ca05cd7f0
3 changes: 1 addition & 2 deletions crates/rpc/rpc/src/eth/filter.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use super::cache::EthStateCache;
use crate::{
eth::{error::EthApiError, logs_utils},
result::{internal_rpc_err, rpc_error_with_code, ToRpcResult},
Expand All @@ -14,8 +15,6 @@ use std::{collections::HashMap, sync::Arc, time::Instant};
use tokio::sync::Mutex;
use tracing::trace;

use super::cache::EthStateCache;

/// The default maximum of logs in a single response.
const DEFAULT_MAX_LOGS_IN_RESPONSE: usize = 2_000;

Expand Down