diff --git a/src/core/Akka.Docs.Tests/Persistence/PersistentActor/PersistAsync.cs b/src/core/Akka.Docs.Tests/Persistence/PersistentActor/PersistAsync.cs index df5d6340ba6..9654dc43525 100644 --- a/src/core/Akka.Docs.Tests/Persistence/PersistentActor/PersistAsync.cs +++ b/src/core/Akka.Docs.Tests/Persistence/PersistentActor/PersistAsync.cs @@ -27,9 +27,8 @@ protected override void OnCommand(object message) if (message is string c) { Sender.Tell(c); - Persist($"evt-{c}-1", e => Sender.Tell(e)); - Persist($"evt-{c}-2", e => Sender.Tell(e)); - DeferAsync($"evt-{c}-3", e => Sender.Tell(e)); + PersistAsync($"evt-{c}-1", e => Sender.Tell(e)); + PersistAsync($"evt-{c}-2", e => Sender.Tell(e)); } } }