1
0
mirror of synced 2024-11-05 02:59:16 +00: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( await MiddlewareHelper.GoAsync(
bindingInfo.CleanupMiddleware, bindingInfo.CleanupMiddleware,
async (handler, next) => await handler.Cleanup(context, ConsumeResult.Success, next), async (handler, next) => await handler.Cleanup(context, consumeResult, next),
() => Task.CompletedTask); () => Task.CompletedTask);
} }