Skip to content

Commit ffad4f3

Browse files
committed
Clarify when PaymentDetails::amount_msat might be None
1 parent b12b748 commit ffad4f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/payment/store.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ pub struct PaymentDetails {
4141
/// The kind of the payment.
4242
pub kind: PaymentKind,
4343
/// The amount transferred.
44+
///
45+
/// Will be `None` for variable-amount payments until we received them.
4446
pub amount_msat: Option<u64>,
4547
/// The fees that were paid for this payment.
4648
///

0 commit comments

Comments
 (0)