Skip to content

Commit

Permalink
Change default mailbox queue (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing authored May 27, 2022
1 parent 74bf3c5 commit 4dde62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Proto.Actor/Mailbox/Mailbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public interface IMailbox
public static class BoundedMailbox
{
public static IMailbox Create(int size, params IMailboxStatistics[] stats) =>
new DefaultMailbox(new UnboundedMailboxQueue(), new BoundedMailboxQueue(size), stats);
new DefaultMailbox(new LockingUnboundedMailboxQueue(4), new BoundedMailboxQueue(size), stats);
}

public static class UnboundedMailbox
{
public static IMailbox Create(params IMailboxStatistics[] stats) =>
new DefaultMailbox(new UnboundedMailboxQueue(), new UnboundedMailboxQueue(), stats);
new DefaultMailbox(new LockingUnboundedMailboxQueue(4), new UnboundedMailboxQueue(), stats);
}

public sealed class DefaultMailbox : IMailbox
Expand Down

0 comments on commit 4dde62e

Please sign in to comment.