mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-12 16:09:29 -05:00
Add swap id to tracing context
This commit is contained in:
parent
b8a9356d1b
commit
704a8e7b01
@ -55,6 +55,7 @@ pub async fn run(swap: alice::Swap) -> Result<AliceState> {
|
||||
run_until(swap, is_complete).await
|
||||
}
|
||||
|
||||
#[tracing::instrument(name = "swap", skip(swap,is_target_state), fields(id = %swap.swap_id))]
|
||||
pub async fn run_until(
|
||||
swap: alice::Swap,
|
||||
is_target_state: fn(&AliceState) -> bool,
|
||||
|
@ -32,6 +32,7 @@ pub async fn run(swap: bob::Swap) -> Result<BobState> {
|
||||
run_until(swap, is_complete).await
|
||||
}
|
||||
|
||||
#[tracing::instrument(name = "swap", skip(swap,is_target_state), fields(id = %swap.swap_id))]
|
||||
pub async fn run_until(
|
||||
swap: bob::Swap,
|
||||
is_target_state: fn(&BobState) -> bool,
|
||||
|
Loading…
Reference in New Issue
Block a user