Skip to content

Commit

Permalink
(#279) Use PooledChannelMiddleware in tools
Browse files Browse the repository at this point in the history
  • Loading branch information
pardahlman committed Oct 8, 2017
1 parent c92d649 commit a2017ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/RawRabbit.Operations.Tools/BasicPublishExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class BasicPublishExtension
{
public static readonly Action<IPipeBuilder> PublishPipe = builder => builder
.Use<BasicPublishConfigurationMiddleware>()
.Use<TransientChannelMiddleware>()
.Use<PooledChannelMiddleware>()
.Use<BasicPublishMiddleware>();

public static Task BasicPublishAsync(
Expand Down Expand Up @@ -44,4 +44,4 @@ public static Task BasicPublishAsync(
);
}
}
}
}
2 changes: 1 addition & 1 deletion src/RawRabbit.Operations.Tools/DeleteExchangeExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static class DeleteExchangeExtension
}
return func();
})
.Use<TransientChannelMiddleware>()
.Use<PooledChannelMiddleware>()
.Use<ExchangeDeleteMiddleware>(new ExchangeDeleteOptions
{
ExchangeNameFunc = context => context.Get<string>(ExchangeName),
Expand Down
2 changes: 1 addition & 1 deletion src/RawRabbit.Operations.Tools/DeleteQueueExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static class DeleteQueueExtension
}
return func();
})
.Use<TransientChannelMiddleware>()
.Use<PooledChannelMiddleware>()
.Use<QueueDeleteMiddleware>(new QueueDeleteOptions
{
QueueNameFunc = context => context.Get<string>(QueueName)
Expand Down

0 comments on commit a2017ff

Please sign in to comment.