From f0e6e45d562bf767f5f9cddb11b76307186348ab Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 19 Jan 2021 14:37:49 +1100 Subject: [PATCH] Remove unecessary `bob` qualifier --- swap/src/main.rs | 2 +- swap/src/protocol/bob.rs | 2 +- swap/tests/testutils/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/swap/src/main.rs b/swap/src/main.rs index f2ccf342..182febd5 100644 --- a/swap/src/main.rs +++ b/swap/src/main.rs @@ -136,7 +136,7 @@ async fn main() -> Result<()> { alice_addr, alice_peer_id, ); - let (swap, event_loop) = bob_factory.new_swap_as_bob(swap_amounts, config).await?; + let (swap, event_loop) = bob_factory.new_swap(swap_amounts, config).await?; tokio::spawn(async move { event_loop.run().await }); bob::run(swap).await?; diff --git a/swap/src/protocol/bob.rs b/swap/src/protocol/bob.rs index e3b3b693..5780c17c 100644 --- a/swap/src/protocol/bob.rs +++ b/swap/src/protocol/bob.rs @@ -88,7 +88,7 @@ impl SwapFactory { } } - pub async fn new_swap_as_bob( + pub async fn new_swap( &self, swap_amounts: SwapAmounts, config: Config, diff --git a/swap/tests/testutils/mod.rs b/swap/tests/testutils/mod.rs index 64106a0d..ce4d0102 100644 --- a/swap/tests/testutils/mod.rs +++ b/swap/tests/testutils/mod.rs @@ -42,7 +42,7 @@ impl TestContext { pub async fn new_swap_as_bob(&self) -> bob::Swap { let (swap, event_loop) = self .bob_swap_factory - .new_swap_as_bob(self.swap_amounts, Config::regtest()) + .new_swap(self.swap_amounts, Config::regtest()) .await .unwrap();