Commit bf389e5b by 丁松杰

删除不必要的代码

parent d0e3d7c6
Showing with 3 additions and 5 deletions
...@@ -57,13 +57,11 @@ namespace Pole.Core.EventBus ...@@ -57,13 +57,11 @@ namespace Pole.Core.EventBus
} }
else else
{ {
var transaction = (IDbTransactionAdapter)Transaction; var mediumMessage = eventStorage.StoreMessage(eventEntity, Transaction.DbTransaction);
var mediumMessage = eventStorage.StoreMessage(eventEntity, transaction.DbTransaction); if (Transaction.AutoCommit)
if (transaction.AutoCommit)
{ {
await transaction.CommitAsync(); await Transaction.CommitAsync();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment