mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
fix rust code
This commit is contained in:
@@ -4,7 +4,7 @@ use breez_sdk_core::*;
|
||||
|
||||
async fn webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
// ANCHOR: register-webook
|
||||
sdk.register_webhook("https://yourapplication.com").await?
|
||||
sdk.register_webhook("https://yourapplication.com").await?;
|
||||
// ANCHOR_END: register-webook
|
||||
|
||||
Ok(())
|
||||
@@ -12,7 +12,7 @@ async fn webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
|
||||
async fn payment_webhook(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
// ANCHOR: register-payment-webook
|
||||
sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>").await?
|
||||
sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=<PUSH_TOKEN>").await?;
|
||||
// ANCHOR_END: register-payment-webook
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user