1
0
mirror of synced 2024-12-22 17:23:07 +01:00

Pass parameter consumeResult to handle.Cleanup - fixed cleanup state after exception

This commit is contained in:
Hans Mulder 2020-01-17 14:16:13 +01:00
parent 9351861fcc
commit 74a3aa19f7

View File

@ -184,7 +184,7 @@ namespace Tapeti.Default
{
await MiddlewareHelper.GoAsync(
bindingInfo.CleanupMiddleware,
async (handler, next) => await handler.Cleanup(context, ConsumeResult.Success, next),
async (handler, next) => await handler.Cleanup(context, consumeResult, next),
() => Task.CompletedTask);
}