mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 14:56:10 -04:00
Remove unnecessary alice
qualifiers in alice::SwapFactor
This commit is contained in:
parent
3bc76a91c6
commit
181999e04f
3 changed files with 6 additions and 10 deletions
|
@ -30,7 +30,7 @@ impl TestContext {
|
|||
pub async fn new_swap_as_alice(&self) -> alice::Swap {
|
||||
let (swap, mut event_loop) = self
|
||||
.alice_swap_factory
|
||||
.new_swap_as_alice(self.swap_amounts)
|
||||
.new_swap(self.swap_amounts)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
@ -52,11 +52,7 @@ impl TestContext {
|
|||
}
|
||||
|
||||
pub async fn recover_alice_from_db(&self) -> alice::Swap {
|
||||
let (swap, mut event_loop) = self
|
||||
.alice_swap_factory
|
||||
.recover_alice_from_db()
|
||||
.await
|
||||
.unwrap();
|
||||
let (swap, mut event_loop) = self.alice_swap_factory.resume().await.unwrap();
|
||||
|
||||
tokio::spawn(async move { event_loop.run().await });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue