Skip to content

Commit 80e8a05

Browse files
committed
Minor cleanups and typo fixes
1 parent b71b510 commit 80e8a05

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lightning-liquidity/src/lsps1/service.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ impl<ES: Deref, CM: Deref + Clone, K: Deref + Clone, TP: Deref + Clone>
7272
where
7373
ES::Target: EntropySource,
7474
CM::Target: AChannelManager,
75-
ES::Target: EntropySource,
7675
K::Target: KVStore,
7776
TP::Target: TimeProvider,
7877
{
@@ -277,8 +276,9 @@ where
277276
}
278277

279278
/// Used by LSP to give details to client regarding the status of channel opening.
280-
/// Called to respond to client's GetOrder request.
281-
/// The LSP continously polls for checking payment confirmation on-chain or lighting
279+
/// Called to respond to client's `GetOrder` request.
280+
///
281+
/// The LSP continously polls for checking payment confirmation on-chain or Lightning
282282
/// and then responds to client request.
283283
///
284284
/// Should be called in response to receiving a [`LSPS1ServiceEvent::CheckPaymentConfirmation`] event.
@@ -373,7 +373,7 @@ fn check_range(min: u64, max: u64, value: u64) -> bool {
373373
}
374374

375375
fn is_valid(order: &LSPS1OrderParams, options: &LSPS1Options) -> bool {
376-
let bool = check_range(
376+
check_range(
377377
options.min_initial_client_balance_sat,
378378
options.max_initial_client_balance_sat,
379379
order.client_balance_sat,
@@ -385,7 +385,5 @@ fn is_valid(order: &LSPS1OrderParams, options: &LSPS1Options) -> bool {
385385
1,
386386
options.max_channel_expiry_blocks.into(),
387387
order.channel_expiry_blocks.into(),
388-
);
389-
390-
bool
388+
)
391389
}

0 commit comments

Comments
 (0)