Skip to content

Commit 2f4690e

Browse files
committed
f Improve docs
1 parent 23f7c70 commit 2f4690e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ pub struct Config {
247247
/// should therefore only be accepted from trusted peers.
248248
pub trusted_peers_0conf: Vec<PublicKey>,
249249
/// The liquidity factor by which we filter the outgoing channels used for sending probes.
250+
///
251+
/// Channels with available liquidity less than the required amount times this value won't be
252+
/// used to send pre-flight probes.
250253
pub probing_liquidity_limit_multiplier: u64,
251254
/// The level at which we log messages.
252255
///
@@ -1313,8 +1316,8 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
13131316
/// Otherwise, there is a chance the probe could take up some liquidity needed to complete the
13141317
/// actual payment. Users should therefore be cautious and might avoid sending probes if
13151318
/// liquidity is scarce and/or they don't expect the probe to return before they send the
1316-
/// payment. To mitigate this issue, channels whose available liquidity is less than the
1317-
/// required amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
1319+
/// payment. To mitigate this issue, channels with available liquidity less than the required
1320+
/// amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
13181321
/// pre-flight probes.
13191322
pub fn send_payment_probe(&self, invoice: &Bolt11Invoice) -> Result<(), Error> {
13201323
let rt_lock = self.runtime.read().unwrap();
@@ -1358,8 +1361,8 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
13581361
/// Otherwise, there is a chance the probe could take up some liquidity needed to complete the
13591362
/// actual payment. Users should therefore be cautious and might avoid sending probes if
13601363
/// liquidity is scarce and/or they don't expect the probe to return before they send the
1361-
/// payment. To mitigate this issue, channels whose available liquidity is less than the
1362-
/// required amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
1364+
/// payment. To mitigate this issue, channels with available liquidity less than the required
1365+
/// amount times [`Config::probing_liquidity_limit_multiplier`] won't be used to send
13631366
/// pre-flight probes.
13641367
pub fn send_spontaneous_payment_probe(
13651368
&self, amount_msat: u64, node_id: PublicKey,

0 commit comments

Comments
 (0)