Permalink
Browse files

Merge pull request #1280 from EventStore/revert-mpsc

Revert to legacy queued handler.
  • Loading branch information...
hayley-jean authored and pgermishuys committed Apr 21, 2017
1 parent aa8cda8 commit 8df7ecee1eaa7d079f1da0d74f99e7d7818a9554
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/EventStore.Core/Bus/QueuedHandler.cs
@@ -17,12 +17,12 @@ public class QueuedHandler :
bool watchSlowMsg = true,
TimeSpan? slowMsgThreshold = null, TimeSpan? threadStopWaitTimeout = null, string groupName = null)
{
if (IntPtr.Size == 8)
{
// optimized path, using much faster multi producer single consumer queue
return new QueueHandlerUsingMpsc(consumer, name, watchSlowMsg, slowMsgThreshold, threadStopWaitTimeout,
groupName);
}
//if (IntPtr.Size == 8)
//{
// // optimized path, using much faster multi producer single consumer queue
// return new QueueHandlerUsingMpsc(consumer, name, watchSlowMsg, slowMsgThreshold, threadStopWaitTimeout,
// groupName);
//}
return new QueuedHandler(consumer, name, watchSlowMsg, slowMsgThreshold, threadStopWaitTimeout, groupName);
}

0 comments on commit 8df7ece

Please sign in to comment.