Skip to content

Commit c5ed4dc

Browse files
Merge pull request #1263 from mintlayer/fix/remove_temp_prints
Remove temporary prints
2 parents 2641752 + 395a0f7 commit c5ed4dc

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

subsystem/tests/blocking.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,16 @@ fn tester_worker_thread(
6363
counter: BlockingHandle<Counter>,
6464
shutdown: subsystem::ShutdownTrigger,
6565
) {
66-
eprintln!("res0");
6766
let res0 = substringer.call_mut(|this| this.append_get("xyz"));
6867
assert_eq!(res0, Ok("abcxyz".to_string()));
6968
assert_eq!(substringer.call(Substringer::size), Ok(6));
7069

71-
eprintln!("res1");
7270
let res1 = substringer.call(|this| this.substr(2, 5));
7371
assert_eq!(res1, Ok("cxy".to_string()));
7472

75-
eprintln!("res2");
7673
let res2 = counter.call(Counter::get);
7774
assert_eq!(res2, Ok(13));
7875

79-
eprintln!("res3");
8076
let res3 = counter.call_mut(|this| this.add_and_get(3));
8177
assert_eq!(res3, Ok(16));
8278

wallet/wallet-cli-lib/src/lib.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,11 @@ pub async fn run(
5757
let chain_config = match chain_config {
5858
Some(chain_config) => chain_config,
5959
None => match &args.network {
60-
Some(Network::Regtest(regtest_options)) => {
61-
eprintln!("\n\nRegtest config {}", chain_type.name());
62-
Arc::new(
63-
regtest_chain_config(&regtest_options.chain_config)
64-
.map_err(|err| WalletCliError::InvalidConfig(err.to_string()))?,
65-
)
66-
}
67-
_ => {
68-
eprintln!("\n\nNot regtest {}", chain_type.name());
69-
Arc::new(common::chain::config::Builder::new(chain_type).build())
70-
}
60+
Some(Network::Regtest(regtest_options)) => Arc::new(
61+
regtest_chain_config(&regtest_options.chain_config)
62+
.map_err(|err| WalletCliError::InvalidConfig(err.to_string()))?,
63+
),
64+
_ => Arc::new(common::chain::config::Builder::new(chain_type).build()),
7165
},
7266
};
7367

0 commit comments

Comments
 (0)