fixing warnings

This commit is contained in:
Lorenzo Tucci 2023-01-11 13:07:11 +01:00
parent 5d301ebbb1
commit b5396798e4
No known key found for this signature in database
GPG key ID: D98C4FA2CDF590A0
5 changed files with 14 additions and 15 deletions

View file

@ -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 => {