Skip to content

Commit

Permalink
(#224) Use channel from context if present
Browse files Browse the repository at this point in the history
  • Loading branch information
pardahlman committed May 7, 2017
1 parent 9d7834d commit e6a0dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RawRabbit/Pipe/Middleware/ConsumerMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ConsumerMiddleware(IConsumerFactory consumerFactory, ConsumerOptions opti
{
ConsumerFactory = consumerFactory;
ConfigFunc = options?.ConfigurationFunc ?? (context => context.GetConsumeConfiguration());
ConsumerFunc = options?.ConsumerFunc ?? ((factory, token, context) => factory.CreateConsumerAsync(token: token));
ConsumerFunc = options?.ConsumerFunc ?? ((factory, token, context) => factory.CreateConsumerAsync(context.GetChannel(), token));
}

public override async Task InvokeAsync(IPipeContext context, CancellationToken token = default(CancellationToken))
Expand Down

0 comments on commit e6a0dfa

Please sign in to comment.