Skip to content

Commit

Permalink
Check result of add.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-NLnetLabs committed Oct 9, 2023
1 parent b0d79c2 commit 6338031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/client-transports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ async fn main() {
});

// Add the previously created transports.
redun.add(Box::new(udptcp_conn)).await;
redun.add(Box::new(tcp_conn)).await;
redun.add(Box::new(tls_conn)).await;
redun.add(Box::new(udptcp_conn)).await.unwrap();
redun.add(Box::new(tcp_conn)).await.unwrap();
redun.add(Box::new(tls_conn)).await.unwrap();

// Start a few queries.
for _i in 1..10 {
Expand Down

0 comments on commit 6338031

Please sign in to comment.