@@ -71,9 +71,6 @@ pub struct TestChannelSigner {
71
71
/// Channel state used for policy enforcement
72
72
pub state : Arc < Mutex < EnforcementState > > ,
73
73
pub disable_revocation_policy_check : bool ,
74
- /// When `true` (the default), the signer will respond immediately with signatures. When `false`,
75
- /// the signer will return an error indicating that it is unavailable.
76
- pub available : Arc < Mutex < bool > > ,
77
74
}
78
75
79
76
/// Channel signer operations that can be individually enabled and disabled. If a particular value
@@ -135,7 +132,6 @@ impl TestChannelSigner {
135
132
inner,
136
133
state,
137
134
disable_revocation_policy_check : false ,
138
- available : Arc :: new ( Mutex :: new ( true ) ) ,
139
135
}
140
136
}
141
137
@@ -149,7 +145,6 @@ impl TestChannelSigner {
149
145
inner,
150
146
state,
151
147
disable_revocation_policy_check,
152
- available : Arc :: new ( Mutex :: new ( true ) ) ,
153
148
}
154
149
}
155
150
@@ -162,13 +157,9 @@ impl TestChannelSigner {
162
157
163
158
/// Marks the signer's availability.
164
159
///
165
- /// When `true`, methods are forwarded to the underlying signer as normal. When `false`, some
160
+ /// When a certain mask is set to `true`, methods are forwarded to the underlying signer as normal. When `false`, some
166
161
/// methods will return `Err` indicating that the signer is unavailable. Intended to be used for
167
162
/// testing asynchronous signing.
168
- pub fn set_available ( & self , available : bool ) {
169
- * self . available . lock ( ) . unwrap ( ) = available;
170
- }
171
-
172
163
#[ cfg( test) ]
173
164
pub fn set_ops_available ( & self , mask : u32 , available : bool ) {
174
165
let mut state = self . get_enforcement_state ( ) ;
0 commit comments