mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Keep terminology consistent
Also avoid redundant qualifiers.
This commit is contained in:
parent
05669c749c
commit
96b1b18037
@ -215,7 +215,7 @@ async fn main() -> Result<()> {
|
|||||||
alice_addr,
|
alice_addr,
|
||||||
alice_peer_id,
|
alice_peer_id,
|
||||||
);
|
);
|
||||||
let (swap, event_loop) = bob_factory.recover_bob_from_db().await?;
|
let (swap, event_loop) = bob_factory.resume().await?;
|
||||||
|
|
||||||
tokio::spawn(async move { event_loop.run().await });
|
tokio::spawn(async move { event_loop.run().await });
|
||||||
bob::run(swap).await?;
|
bob::run(swap).await?;
|
||||||
|
@ -129,7 +129,7 @@ impl SwapFactory {
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn recover_bob_from_db(&self) -> Result<(bob::Swap, bob::EventLoop)> {
|
pub async fn resume(&self) -> Result<(bob::Swap, bob::EventLoop)> {
|
||||||
// reopen the existing database
|
// reopen the existing database
|
||||||
let db = Database::open(self.db_path.clone().as_path())?;
|
let db = Database::open(self.db_path.clone().as_path())?;
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ impl TestContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn recover_bob_from_db(&self) -> bob::Swap {
|
pub async fn recover_bob_from_db(&self) -> bob::Swap {
|
||||||
let (swap, event_loop) = self.bob_swap_factory.recover_bob_from_db().await.unwrap();
|
let (swap, event_loop) = self.bob_swap_factory.resume().await.unwrap();
|
||||||
|
|
||||||
tokio::spawn(async move { event_loop.run().await });
|
tokio::spawn(async move { event_loop.run().await });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user