Browse Source

Fix flush unclaer data bugs.

master
Savorboard 6 years ago
parent
commit
e993f4be92
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/DotNetCore.CAP/ICapTransaction.Base.cs

+ 4
- 2
src/DotNetCore.CAP/ICapTransaction.Base.cs View File

@@ -23,13 +23,15 @@ namespace DotNetCore.CAP
{
_bufferList.Add(msg);
}
protected void Flush()
protected virtual void Flush()
{
foreach (var message in _bufferList)
{
_dispatcher.EnqueueToPublish(message);
}

_bufferList.Clear();
}

public abstract void Commit();


Loading…
Cancel
Save