mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Remove unecessary bob
qualifier
This commit is contained in:
parent
dbc633ea06
commit
f0e6e45d56
@ -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?;
|
||||
|
@ -88,7 +88,7 @@ impl SwapFactory {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn new_swap_as_bob(
|
||||
pub async fn new_swap(
|
||||
&self,
|
||||
swap_amounts: SwapAmounts,
|
||||
config: Config,
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user