Skip to content

Commit 7d7a308

Browse files
committed
Fixing calls_made fn signature
1 parent aacb129 commit 7d7a308

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,5 @@ pub trait ElectrumApi {
183183

184184
#[cfg(feature = "debug-calls")]
185185
/// 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>;
187187
}

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl ElectrumApi for Client {
285285

286286
#[inline]
287287
#[cfg(feature = "debug-calls")]
288-
fn calls_made(&self) -> usize {
288+
fn calls_made(&self) -> Result<usize, Error> {
289289
impl_inner_call!(self, calls_made)
290290
}
291291
}

src/raw_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ impl<T: Read + Write> ElectrumApi for RawClient<T> {
984984
}
985985

986986
#[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))
989989
}
990990
}
991991

0 commit comments

Comments
 (0)