Keep terminology consistent

Also avoid redundant qualifiers.
This commit is contained in:
Franck Royer 2021-01-19 14:16:56 +11:00
parent 05669c749c
commit 96b1b18037
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ async fn main() -> Result<()> {
alice_addr,
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 });
bob::run(swap).await?;

View File

@ -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
let db = Database::open(self.db_path.clone().as_path())?;

View File

@ -64,7 +64,7 @@ impl TestContext {
}
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 });