From 6bd710efdf7515f5aa75d6d2a12a1d1be4c9e436 Mon Sep 17 00:00:00 2001 From: Roei Erez Date: Mon, 3 Jun 2024 13:02:36 +0300 Subject: [PATCH] fix comment --- lib/core/src/swapper.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/core/src/swapper.rs b/lib/core/src/swapper.rs index abca59e..21ac836 100644 --- a/lib/core/src/swapper.rs +++ b/lib/core/src/swapper.rs @@ -46,9 +46,9 @@ pub trait Swapper: Send + Sync { current_height: u32, ) -> Result; - // Get claim tx details which includes the preimage as a proof of payment. - // It is used to validate the preimage before claiming which is the reason why we need to separate - // the claim into two steps. + /// Get claim tx details which includes the preimage as a proof of payment. + /// It is used to validate the preimage before claiming which is the reason why we need to separate + /// the claim into two steps. fn get_claim_tx_details(&self, swap: &SendSwap) -> Result; /// Claim send swap cooperatively. Here the remote swapper is the one that claims. @@ -223,9 +223,9 @@ impl Swapper for BoltzSwapper { Ok(refund_tx_id) } - // Get claim tx details which includes the preimage as a proof of payment. - // It is used to validate the preimage before claiming which is the reason why we need to separate - // the claim into two steps. + /// Get claim tx details which includes the preimage as a proof of payment. + /// It is used to validate the preimage before claiming which is the reason why we need to separate + /// the claim into two steps. fn get_claim_tx_details(&self, swap: &SendSwap) -> Result { let claim_tx_response = self.client.get_claim_tx_details(&swap.id)?; info!("Received claim tx details: {:?}", &claim_tx_response);