Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDhejavu committed Dec 30, 2024
1 parent a74dcca commit ae3e6b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benches/filter_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fn generate_random_address() -> String {
fn generate_best_case_filter() -> Filter {
FilterBuilder::new().transaction(|tx| {
tx.value().gt(U256::from(u64::MAX));
tx.to().exact("0xdead000000000000000000000000000000000000");
tx.nonce().eq(u64::MAX);
// tx.to().exact("0xdead000000000000000000000000000000000000");
// tx.nonce().eq(u64::MAX);
})
}

Expand Down
2 changes: 1 addition & 1 deletion examples/l2_optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use alloy_primitives::U256;
use eyre::{Result, WrapErr};
use sieve::{prelude::*, Sieve};
use tokio_stream::StreamExt;
use tracing::{error, info};
use tracing::info;

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ mod tests {
});

let mut stream = sieve
.watch_within(vec![filter1, filter2], Duration::from_millis(0))
.watch_within(vec![filter1, filter2], Duration::from_millis(10))
.await?;

if let Some(Ok(window_event)) = stream.next().await {
Expand Down

0 comments on commit ae3e6b0

Please sign in to comment.