Skip to content

Commit

Permalink
feature:
Browse files Browse the repository at this point in the history
升级nuget版本
  • Loading branch information
KawhiWei committed Jun 20, 2024
1 parent d215302 commit 4b56e08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Polly" Version="7.2.4" />
<PackageReference Include="RabbitMQ.Client" Version="6.6.0" />
<PackageReference Include="Polly" Version="8.4.0" />
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion src/framework/Luck.EventBus.RabbitMQ/Manager/ChannelPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ public void Dispose()
}

/// <inheritdoc />
public IModel GetChannel() => _channels.TryTake(out var channel) ? channel : connection.CreateModel();
public IModel GetChannel()
{
return _channels.TryTake(out var channel) ? channel : connection.CreateModel();
}

/// <inheritdoc />
public void ReturnChannel(IModel channel)
Expand Down

0 comments on commit 4b56e08

Please sign in to comment.