Skip to content

Commit

Permalink
Revert "Making use of PooledChannelMiddleware instead of ChannelCreat…
Browse files Browse the repository at this point in the history
…ionMiddleware for get Operations"

This reverts commit 5f07cdb.
  • Loading branch information
pardahlman committed Mar 11, 2018
1 parent bd43ade commit f268ada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AckableResultMiddleware<TResult> : Pipe.Middleware.Middleware
public AckableResultMiddleware(AckableResultOptions<TResult> options = null)
{
GetResultFunc = options?.ContentFunc;
ChannelFunc = options?.ChannelFunc ?? (context => context.GetTransientChannel());
ChannelFunc = options?.ChannelFunc ?? (context => context.GetChannel());
PostExecutionAction = options?.PostExecutionAction;
DeliveryTagFunc = options?.DeliveryTagFunc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class BasicGetMiddleware : Pipe.Middleware.Middleware

public BasicGetMiddleware(BasicGetOptions options = null)
{
ChannelFunc = options?.ChannelFunc ?? (context => context.GetTransientChannel());
ChannelFunc = options?.ChannelFunc ?? (context => context.GetChannel());
QueueNameFunc = options?.QueueNameFunc ?? (context => context.GetGetConfiguration()?.QueueName);
AutoAckFunc = options?.AutoAckFunc ?? (context => context.GetGetConfiguration()?.AutoAck ?? false);
PostExecutionAction = options?.PostExecutionAction;
Expand Down

0 comments on commit f268ada

Please sign in to comment.