File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed
wallet/wallet-cli-lib/src Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -63,20 +63,16 @@ fn tester_worker_thread(
63
63
counter : BlockingHandle < Counter > ,
64
64
shutdown : subsystem:: ShutdownTrigger ,
65
65
) {
66
- eprintln ! ( "res0" ) ;
67
66
let res0 = substringer. call_mut ( |this| this. append_get ( "xyz" ) ) ;
68
67
assert_eq ! ( res0, Ok ( "abcxyz" . to_string( ) ) ) ;
69
68
assert_eq ! ( substringer. call( Substringer :: size) , Ok ( 6 ) ) ;
70
69
71
- eprintln ! ( "res1" ) ;
72
70
let res1 = substringer. call ( |this| this. substr ( 2 , 5 ) ) ;
73
71
assert_eq ! ( res1, Ok ( "cxy" . to_string( ) ) ) ;
74
72
75
- eprintln ! ( "res2" ) ;
76
73
let res2 = counter. call ( Counter :: get) ;
77
74
assert_eq ! ( res2, Ok ( 13 ) ) ;
78
75
79
- eprintln ! ( "res3" ) ;
80
76
let res3 = counter. call_mut ( |this| this. add_and_get ( 3 ) ) ;
81
77
assert_eq ! ( res3, Ok ( 16 ) ) ;
82
78
Original file line number Diff line number Diff line change @@ -57,17 +57,11 @@ pub async fn run(
57
57
let chain_config = match chain_config {
58
58
Some ( chain_config) => chain_config,
59
59
None => match & args. network {
60
- Some ( Network :: Regtest ( regtest_options) ) => {
61
- eprintln ! ( "\n \n Regtest 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 \n Not 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 ( ) ) ,
71
65
} ,
72
66
} ;
73
67
You can’t perform that action at this time.
0 commit comments