File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,5 +183,5 @@ pub trait ElectrumApi {
183
183
184
184
#[ cfg( feature = "debug-calls" ) ]
185
185
/// Returns the number of network calls made since the creation of the client.
186
- fn calls_made ( & self ) -> usize ;
186
+ fn calls_made ( & self ) -> Result < usize , Error > ;
187
187
}
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ impl ElectrumApi for Client {
285
285
286
286
#[ inline]
287
287
#[ cfg( feature = "debug-calls" ) ]
288
- fn calls_made ( & self ) -> usize {
288
+ fn calls_made ( & self ) -> Result < usize , Error > {
289
289
impl_inner_call ! ( self , calls_made)
290
290
}
291
291
}
Original file line number Diff line number Diff line change @@ -984,8 +984,8 @@ impl<T: Read + Write> ElectrumApi for RawClient<T> {
984
984
}
985
985
986
986
#[ cfg( feature = "debug-calls" ) ]
987
- fn calls_made ( & self ) -> usize {
988
- self . calls . load ( Ordering :: SeqCst )
987
+ fn calls_made ( & self ) -> Result < usize , Error > {
988
+ Ok ( self . calls . load ( Ordering :: SeqCst ) )
989
989
}
990
990
}
991
991
You can’t perform that action at this time.
0 commit comments