mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-01 04:56:37 -04:00
Add logging to investigate add address race condition
This commit is contained in:
parent
1a4bd0e2b4
commit
4a4e23038b
1 changed files with 2 additions and 1 deletions
|
@ -69,6 +69,7 @@ impl EventLoopHandle {
|
|||
/// Dials other party and wait for the connection to be established.
|
||||
/// Do nothing if we are already connected
|
||||
pub async fn dial(&mut self, peer_id: PeerId) -> Result<()> {
|
||||
debug!("Attempt to dial Alice {}", peer_id);
|
||||
let _ = self.dial_alice.send(peer_id).await?;
|
||||
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
|
@ -82,7 +83,7 @@ impl EventLoopHandle {
|
|||
}
|
||||
|
||||
pub async fn add_address(&mut self, peer_id: PeerId, addr: Multiaddr) -> Result<()> {
|
||||
debug!("Add address {} for peer id {}", addr, peer_id);
|
||||
debug!("Attempt to add address {} for peer id {}", addr, peer_id);
|
||||
self.add_address.send((peer_id, addr)).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue