Skip to content

Commit

Permalink
Merge pull request #1074 from getlipa/mock/remove-mock-syncs-as-part-…
Browse files Browse the repository at this point in the history
…of-other-methods

Remove mock syncs as part of other methods
  • Loading branch information
danielgranhao authored May 16, 2024
2 parents 09e4d41 + 3cd60fc commit a18a0f8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mock/breez-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,6 @@ impl BreezServices {
}

pub async fn list_payments(&self, req: ListPaymentsRequest) -> SdkResult<Vec<Payment>> {
self.sync().await?;

let payment_type_filter = req
.filters
.as_ref()
Expand Down Expand Up @@ -807,8 +805,6 @@ impl BreezServices {
}

pub async fn in_progress_swap(&self) -> SdkResult<Option<SwapInfo>> {
self.sync().await?;

Ok(SWAPS
.lock()
.unwrap()
Expand Down Expand Up @@ -900,8 +896,6 @@ impl BreezServices {
}

pub async fn list_refundables(&self) -> SdkResult<Vec<SwapInfo>> {
self.sync().await?;

let swaps = SWAPS.lock().unwrap().clone();
Ok(swaps
.into_iter()
Expand Down

0 comments on commit a18a0f8

Please sign in to comment.