Skip to content

Commit 4e939bf

Browse files
committed
fix: fix some warning
1 parent a39a5bf commit 4e939bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bus/EasyCaching.Bus.RabbitMQStream/DefaultRabbitMQStreamBus.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public class DefaultRabbitMQStreamBus : EasyCachingAbstractBus
6262
/// <param name="objectPolicy">Object policy.</param>
6363
/// <param name="rabbitMQOptions">RabbitMQ Options.</param>
6464
/// <param name="serializer">Serializer.</param>
65+
/// <param name="logger">Logger.</param>
6566
public DefaultRabbitMQStreamBus(
6667
IPooledObjectPolicy<IModel> objectPolicy
6768
, IOptions<RabbitMQBusOptions> rabbitMQOptions

sample/EasyCaching.Demo.Locks/Controllers/LocksController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public async Task DistributedLockingOperation(int millisecondsTimeout)
3030
catch (Exception ex)
3131
{
3232
// log error
33-
throw;
33+
throw new Exception("Exception", ex);
3434
}
3535
finally
3636
{
@@ -59,7 +59,7 @@ public async Task MemoryLockingOperation(int millisecondsTimeout)
5959
catch (Exception ex)
6060
{
6161
// log error
62-
throw;
62+
throw new Exception("Exception", ex);
6363
}
6464
finally
6565
{

0 commit comments

Comments
 (0)