From 9d8a231274a8187ba2c8cc64328d775a6a1497cd Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 11 Jan 2025 00:16:17 +0900 Subject: [PATCH] Fix warnings --- .../Services/Altcoins/Monero/Services/MoneroListener.cs | 2 +- BTCPayServer/Services/LightningHistogramService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/Services/Altcoins/Monero/Services/MoneroListener.cs b/BTCPayServer/Services/Altcoins/Monero/Services/MoneroListener.cs index ed6338faa..dd2cdac37 100644 --- a/BTCPayServer/Services/Altcoins/Monero/Services/MoneroListener.cs +++ b/BTCPayServer/Services/Altcoins/Monero/Services/MoneroListener.cs @@ -309,7 +309,7 @@ namespace BTCPayServer.Services.Altcoins.Monero.Services }); return result; } - catch (JsonRpcClient.JsonRpcApiException e) + catch (JsonRpcClient.JsonRpcApiException) { return null; } diff --git a/BTCPayServer/Services/LightningHistogramService.cs b/BTCPayServer/Services/LightningHistogramService.cs index 3dec4822f..aed650b0f 100644 --- a/BTCPayServer/Services/LightningHistogramService.cs +++ b/BTCPayServer/Services/LightningHistogramService.cs @@ -10,7 +10,7 @@ namespace BTCPayServer.Services; public class LightningHistogramService { - public async Task GetHistogram(ILightningClient lightningClient, HistogramType type, CancellationToken cancellationToken) + public Task GetHistogram(ILightningClient lightningClient, HistogramType type, CancellationToken cancellationToken) { var (days, pointCount) = type switch { @@ -29,7 +29,7 @@ public class LightningHistogramService // TODO: We can't just list all invoices and payments, we need to filter them by date // but the client doesn't support that yet so let's just disable this for now. See #6518 - return null; + return Task.FromResult(null); } private class LnTx