Skip to content

Commit

Permalink
(#279) Default to NoOp Async
Browse files Browse the repository at this point in the history
  • Loading branch information
pardahlman committed Oct 8, 2017
1 parent 2e804c1 commit 0007ae9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RawRabbit.Enrichers.Polly/Services/ChannelFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public class ChannelFactory : Channel.ChannelFactory
public ChannelFactory(IConnectionFactory connectionFactory, RawRabbitConfiguration config, ConnectionPolicies policies = null)
: base(connectionFactory, config)
{
CreateChannelPolicy = policies?.CreateChannel ?? Policy.NoOp();
ConnectPolicy = policies?.Connect ?? Policy.NoOp();
GetConnectionPolicy = policies?.GetConnection ?? Policy.NoOp();
CreateChannelPolicy = policies?.CreateChannel ?? Policy.NoOpAsync();
ConnectPolicy = policies?.Connect ?? Policy.NoOpAsync();
GetConnectionPolicy = policies?.GetConnection ?? Policy.NoOpAsync();
}

public override Task ConnectAsync(CancellationToken token = default(CancellationToken))
Expand Down

0 comments on commit 0007ae9

Please sign in to comment.