diff --git a/benchmarks/SpawnBenchmark/Program.cs b/benchmarks/SpawnBenchmark/Program.cs index dca7845090..97431e63bf 100644 --- a/benchmarks/SpawnBenchmark/Program.cs +++ b/benchmarks/SpawnBenchmark/Program.cs @@ -72,7 +72,7 @@ public Task ReceiveAsync(IContext context) } } - public static readonly Props Props = Props.FromProducer(s => new MyActor(s)).WithMailbox(() => new DefaultMailbox(new LockingUnboundedMailboxQueue(4), new LockingUnboundedMailboxQueue(4))); + public static readonly Props Props = Props.FromProducer(s => new MyActor(s)).WithMailbox(() => new DefaultMailbox(new LockingUnboundedMailboxQueue(4), new LockingUnboundedMailboxQueue(4))).WithStartDeadline(TimeSpan.Zero); } diff --git a/src/Proto.Actor/Props/Props.cs b/src/Proto.Actor/Props/Props.cs index d7a7bb49c5..dbb311ee8d 100644 --- a/src/Proto.Actor/Props/Props.cs +++ b/src/Proto.Actor/Props/Props.cs @@ -152,7 +152,7 @@ public static PID SystemSpawner(ActorSystem system, string name, Props props, PI /// public Props WithProducer(Producer producer) => this with { Producer = (_, _) => producer() }; - public Props PropsWithStartDeadline(TimeSpan deadline) => this with { StartDeadline = deadline }; + public Props WithStartDeadline(TimeSpan deadline) => this with { StartDeadline = deadline }; /// /// Delegate used to create the actor.