mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 06:14:21 +01:00
Use snippet anchor instead of line range
This commit is contained in:
@@ -4,6 +4,7 @@ use anyhow::Result;
|
||||
use breez_sdk_core::*;
|
||||
|
||||
async fn receive_payment(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
// ANCHOR: receive-payment
|
||||
let res = sdk.receive_payment(
|
||||
ReceivePaymentRequest {
|
||||
amount_sats: 3000,
|
||||
@@ -15,6 +16,7 @@ async fn receive_payment(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
use_description_hash: None
|
||||
})
|
||||
.await?;
|
||||
// ANCHOR_END: receive-payment
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user