From 6296d6319703025ce28405184909d646e647075d Mon Sep 17 00:00:00 2001 From: d11n Date: Thu, 28 Apr 2022 02:51:21 +0200 Subject: [PATCH] Local API client: Allow for cancellation of GetPayment calls (#3681) I missed adding those in #3674. --- .../Controllers/GreenField/LocalBTCPayServerClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Controllers/GreenField/LocalBTCPayServerClient.cs b/BTCPayServer/Controllers/GreenField/LocalBTCPayServerClient.cs index 2be709b1c..e28ff221f 100644 --- a/BTCPayServer/Controllers/GreenField/LocalBTCPayServerClient.cs +++ b/BTCPayServer/Controllers/GreenField/LocalBTCPayServerClient.cs @@ -1136,12 +1136,12 @@ namespace BTCPayServer.Controllers.Greenfield public override async Task GetLightningPayment(string cryptoCode, string paymentHash, CancellationToken token = default) { - return GetFromActionResult(await _lightningNodeApiController.GetPayment(cryptoCode, paymentHash)); + return GetFromActionResult(await _lightningNodeApiController.GetPayment(cryptoCode, paymentHash, token)); } public override async Task GetLightningPayment(string storeId, string cryptoCode, string paymentHash, CancellationToken token = default) { - return GetFromActionResult(await _storeLightningNodeApiController.GetPayment(cryptoCode, paymentHash)); + return GetFromActionResult(await _storeLightningNodeApiController.GetPayment(cryptoCode, paymentHash, token)); } public override async Task CreatePayout(string storeId, CreatePayoutThroughStoreRequest payoutRequest, CancellationToken cancellationToken = default)