@@ -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
/// Set of signer operations that are disabled. If an operation is disabled,
78
75
/// the signer will return `Err` when the corresponding method is called.
79
76
pub disabled_signer_ops : HashSet < SignerOp > ,
@@ -130,7 +127,6 @@ impl TestChannelSigner {
130
127
inner,
131
128
state,
132
129
disable_revocation_policy_check : false ,
133
- available : Arc :: new ( Mutex :: new ( true ) ) ,
134
130
disabled_signer_ops : HashSet :: new ( ) ,
135
131
}
136
132
}
@@ -145,7 +141,6 @@ impl TestChannelSigner {
145
141
inner,
146
142
state,
147
143
disable_revocation_policy_check,
148
- available : Arc :: new ( Mutex :: new ( true ) ) ,
149
144
disabled_signer_ops : HashSet :: new ( ) ,
150
145
}
151
146
}
@@ -157,15 +152,6 @@ impl TestChannelSigner {
157
152
self . state . lock ( ) . unwrap ( )
158
153
}
159
154
160
- /// Marks the signer's availability.
161
- ///
162
- /// When `true`, methods are forwarded to the underlying signer as normal. When `false`, some
163
- /// methods will return `Err` indicating that the signer is unavailable. Intended to be used for
164
- /// testing asynchronous signing.
165
- pub fn set_available ( & self , available : bool ) {
166
- * self . available . lock ( ) . unwrap ( ) = available;
167
- }
168
-
169
155
pub fn enable_op ( & mut self , signer_op : SignerOp ) {
170
156
self . disabled_signer_ops . remove ( & signer_op) ;
171
157
}
0 commit comments