Add missing async/await keywords

This commit is contained in:
Igor Rylko 2020-10-27 21:17:56 +02:00
parent 5d9827fb60
commit 8d0260b644

View file

@ -210,7 +210,7 @@ namespace BTCPayServer.Payments.Bitcoin
private async Task UpdatePaymentStatesForPendingInvoices(BTCPayWallet wallet)
{
var pendingInvoices = await _InvoiceRepository.GetPendingInvoices();
var actionBlock = new ActionBlock<string>(invoiceId => UpdatePaymentStates(wallet, invoiceId),
var actionBlock = new ActionBlock<string>(async invoiceId => await UpdatePaymentStates(wallet, invoiceId),
new ExecutionDataflowBlockOptions
{
CancellationToken = _Cts.Token,