From 45ba4675fc5e2321c2126c048a1ba3ef2b3d4be2 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Fri, 11 Sep 2020 16:43:49 +0200 Subject: [PATCH] Fix async void usage https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md#async-void --- BTCPayServer/HostedServices/InvoiceNotificationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/HostedServices/InvoiceNotificationManager.cs b/BTCPayServer/HostedServices/InvoiceNotificationManager.cs index 9547cfb91..37d3048c1 100644 --- a/BTCPayServer/HostedServices/InvoiceNotificationManager.cs +++ b/BTCPayServer/HostedServices/InvoiceNotificationManager.cs @@ -61,7 +61,7 @@ namespace BTCPayServer.HostedServices _StoreRepository = storeRepository; } - async void Notify(InvoiceEntity invoice, InvoiceEvent invoiceEvent, bool extendedNotification) + async Task Notify(InvoiceEntity invoice, InvoiceEvent invoiceEvent, bool extendedNotification) { var dto = invoice.EntityToDTO(); var notification = new InvoicePaymentNotificationEventWrapper()