mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 20:46:33 -05:00
fixing warnings
This commit is contained in:
parent
5d301ebbb1
commit
b5396798e4
5 changed files with 14 additions and 15 deletions
|
|
@ -285,7 +285,7 @@ impl Request {
|
|||
|
||||
json!({
|
||||
"signed_tx": signed_tx,
|
||||
"amount": amount.as_sat(),
|
||||
"amount": amount.to_sat(),
|
||||
"txid": signed_tx.txid(),
|
||||
})
|
||||
}
|
||||
|
|
@ -297,7 +297,7 @@ impl Request {
|
|||
loop {
|
||||
tokio::select! {
|
||||
_ = self.shutdown.recv() => {
|
||||
server_handle.stop();
|
||||
server_handle.stop()?;
|
||||
return Ok(json!({
|
||||
"result": []
|
||||
}))
|
||||
|
|
@ -316,7 +316,7 @@ impl Request {
|
|||
);
|
||||
|
||||
json!({
|
||||
"balance": bitcoin_balance.as_sat()
|
||||
"balance": bitcoin_balance.to_sat()
|
||||
})
|
||||
}
|
||||
Method::Resume => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue