From 6f98d5aa2064bf19b2241acb4d6c70e5f2a98073 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Thu, 30 Nov 2023 16:48:24 +0100 Subject: [PATCH] Fix build and warnings --- BTCPayServer/HostedServices/GithubVersionFetcher.cs | 2 +- BTCPayServer/HostedServices/PluginUpdateFetcher.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/BTCPayServer/HostedServices/GithubVersionFetcher.cs b/BTCPayServer/HostedServices/GithubVersionFetcher.cs index 5f08df9e6..be5c95d03 100644 --- a/BTCPayServer/HostedServices/GithubVersionFetcher.cs +++ b/BTCPayServer/HostedServices/GithubVersionFetcher.cs @@ -48,7 +48,7 @@ namespace BTCPayServer.HostedServices private readonly BTCPayServerEnvironment _environment; private readonly NotificationSender _notificationSender; - public async Task Fetch(CancellationToken cancellation) + public virtual async Task Fetch(CancellationToken cancellation) { if (_updateurl == null) return null; diff --git a/BTCPayServer/HostedServices/PluginUpdateFetcher.cs b/BTCPayServer/HostedServices/PluginUpdateFetcher.cs index 840afc8ea..ac633a7dd 100644 --- a/BTCPayServer/HostedServices/PluginUpdateFetcher.cs +++ b/BTCPayServer/HostedServices/PluginUpdateFetcher.cs @@ -81,9 +81,6 @@ namespace BTCPayServer.HostedServices public class PluginUpdateFetcher : IPeriodicTask { - private readonly HttpClient _httpClient; - private readonly Uri _updateurl; - public PluginUpdateFetcher( SettingsRepository settingsRepository, ILogger logger, NotificationSender notificationSender, PluginService pluginService)