Skip to content

Commit

Permalink
Merge pull request #976 from manas-rust/dev
Browse files Browse the repository at this point in the history
fix: run actor-mailbox-middleware failed
  • Loading branch information
rogeralsing authored Nov 29, 2023
2 parents 5a4c262 + eccee11 commit 3fd0e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _examples/actor-mailbox-middleware/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3fd0e0d

Please sign in to comment.