Remove unecessary bob qualifier

This commit is contained in:
Franck Royer 2021-01-19 14:37:49 +11:00
parent dbc633ea06
commit f0e6e45d56
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
3 changed files with 3 additions and 3 deletions

View file

@ -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?;

View file

@ -88,7 +88,7 @@ impl SwapFactory {
}
}
pub async fn new_swap_as_bob(
pub async fn new_swap(
&self,
swap_amounts: SwapAmounts,
config: Config,