@@ -44,8 +44,8 @@ use util::scid_utils::scid_from_parts;
4444use prelude:: * ;
4545use core:: { cmp, mem, fmt} ;
4646use core:: ops:: Deref ;
47- #[ cfg( any( test, feature = "fuzztarget" ) ) ]
48- use std :: sync:: Mutex ;
47+ #[ cfg( any( test, feature = "fuzztarget" , debug_assertions ) ) ]
48+ use sync:: Mutex ;
4949use bitcoin:: hashes:: hex:: ToHex ;
5050use bitcoin:: blockdata:: opcodes:: all:: OP_PUSHBYTES_0 ;
5151
@@ -374,10 +374,10 @@ pub(super) struct Channel<Signer: Sign> {
374374
375375 #[ cfg( debug_assertions) ]
376376 /// Max to_local and to_remote outputs in a locally-generated commitment transaction
377- holder_max_commitment_tx_output : :: std :: sync :: Mutex < ( u64 , u64 ) > ,
377+ holder_max_commitment_tx_output : Mutex < ( u64 , u64 ) > ,
378378 #[ cfg( debug_assertions) ]
379379 /// Max to_local and to_remote outputs in a remote-generated commitment transaction
380- counterparty_max_commitment_tx_output : :: std :: sync :: Mutex < ( u64 , u64 ) > ,
380+ counterparty_max_commitment_tx_output : Mutex < ( u64 , u64 ) > ,
381381
382382 last_sent_closing_fee : Option < ( u32 , u64 , Signature ) > , // (feerate, fee, holder_sig)
383383
@@ -595,9 +595,9 @@ impl<Signer: Sign> Channel<Signer> {
595595 monitor_pending_failures : Vec :: new ( ) ,
596596
597597 #[ cfg( debug_assertions) ]
598- holder_max_commitment_tx_output : :: std :: sync :: Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
598+ holder_max_commitment_tx_output : Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
599599 #[ cfg( debug_assertions) ]
600- counterparty_max_commitment_tx_output : :: std :: sync :: Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
600+ counterparty_max_commitment_tx_output : Mutex :: new ( ( channel_value_satoshis * 1000 - push_msat, push_msat) ) ,
601601
602602 last_sent_closing_fee : None ,
603603
@@ -836,9 +836,9 @@ impl<Signer: Sign> Channel<Signer> {
836836 monitor_pending_failures : Vec :: new ( ) ,
837837
838838 #[ cfg( debug_assertions) ]
839- holder_max_commitment_tx_output : :: std :: sync :: Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
839+ holder_max_commitment_tx_output : Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
840840 #[ cfg( debug_assertions) ]
841- counterparty_max_commitment_tx_output : :: std :: sync :: Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
841+ counterparty_max_commitment_tx_output : Mutex :: new ( ( msg. push_msat , msg. funding_satoshis * 1000 - msg. push_msat ) ) ,
842842
843843 last_sent_closing_fee : None ,
844844
@@ -4943,9 +4943,9 @@ impl<'a, Signer: Sign, K: Deref> ReadableArgs<&'a K> for Channel<Signer>
49434943 feerate_per_kw,
49444944
49454945 #[ cfg( debug_assertions) ]
4946- holder_max_commitment_tx_output : :: std :: sync :: Mutex :: new ( ( 0 , 0 ) ) ,
4946+ holder_max_commitment_tx_output : Mutex :: new ( ( 0 , 0 ) ) ,
49474947 #[ cfg( debug_assertions) ]
4948- counterparty_max_commitment_tx_output : :: std :: sync :: Mutex :: new ( ( 0 , 0 ) ) ,
4948+ counterparty_max_commitment_tx_output : Mutex :: new ( ( 0 , 0 ) ) ,
49494949
49504950 last_sent_closing_fee,
49514951
@@ -5023,7 +5023,7 @@ mod tests {
50235023 use bitcoin:: hashes:: sha256:: Hash as Sha256 ;
50245024 use bitcoin:: hashes:: Hash ;
50255025 use bitcoin:: hash_types:: { Txid , WPubkeyHash } ;
5026- use std :: sync:: Arc ;
5026+ use sync:: Arc ;
50275027 use prelude:: * ;
50285028
50295029 struct TestFeeEstimator {
0 commit comments