Skip to content

Commit

Permalink
Merge remote-tracking branch 'labs/dev' into live_test_grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
fluidvanadium committed Jan 8, 2024
2 parents ed427e7 + 0d73cd3 commit 923b992
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions darkside-tests/tests/network_interruption_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,8 @@ async fn network_interrupt_test() {
conditional_logic.insert(
"get_tree_state",
Box::new(|online: &Arc<AtomicBool>| {
{
println!("Turning off, as we received get_tree_state call");
online.store(false, Ordering::Relaxed);
}
.into()
println!("Turning off, as we received get_tree_state call");
online.store(false, Ordering::Relaxed);
}),
);

Expand Down
1 change: 1 addition & 0 deletions zingo-testutils/src/grpc_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ macro_rules! define_grpc_passthrough {
pub struct ProxyServer {
pub lightwalletd_uri: http::Uri,
pub online: Arc<AtomicBool>,
#[allow(clippy::type_complexity)]
pub conditional_operations: HashMap<&'static str, Box<dyn Fn(&Arc<AtomicBool>) + Send + Sync>>,
}

Expand Down
1 change: 1 addition & 0 deletions zingo-testutils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ pub mod scenarios {
}
}

#[allow(clippy::type_complexity)]
pub fn start_proxy_and_connect_lightclient(
client: &LightClient,
conditional_operations: HashMap<&'static str, Box<dyn Fn(&Arc<AtomicBool>) + Send + Sync>>,
Expand Down

0 comments on commit 923b992

Please sign in to comment.