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)