diff --git a/_examples/actor-mailbox-middleware/main.go b/_examples/actor-mailbox-middleware/main.go index cc91f209..2f2a09f8 100644 --- a/_examples/actor-mailbox-middleware/main.go +++ b/_examples/actor-mailbox-middleware/main.go @@ -30,8 +30,10 @@ func (m *mailboxLogger) MailboxEmpty() { func main() { system := actor.NewActorSystem() rootContext := system.Root - props := actor.PropsFromFunc(func(ctx actor.Context) { - }, actor.WithMailbox(actor.Unbounded(&mailboxLogger{logger: system.Logger}))) + props := actor.PropsFromFunc( + func(ctx actor.Context) {}, + actor.WithMailbox(actor.Unbounded(&mailboxLogger{logger: system.Logger()})), + ) pid := rootContext.Spawn(props) rootContext.Send(pid, "Hello") _, _ = console.ReadLine()