remove extra parameter to match Listener constructor
This commit is contained in:
parent
4a9c753710
commit
c44275b8b7
1 changed files with 3 additions and 3 deletions
|
|
@ -144,7 +144,7 @@ class LoggingDocSpec extends AkkaSpec {
|
|||
}
|
||||
}
|
||||
|
||||
val listener = system.actorOf(Props(classOf[Listener], this))
|
||||
val listener = system.actorOf(Props[Listener])
|
||||
system.eventStream.subscribe(listener, classOf[DeadLetter])
|
||||
//#deadletters
|
||||
}
|
||||
|
|
@ -166,8 +166,8 @@ class LoggingDocSpec extends AkkaSpec {
|
|||
}
|
||||
}
|
||||
|
||||
val jazzListener = system.actorOf(Props(classOf[Listener], this))
|
||||
val musicListener = system.actorOf(Props(classOf[Listener], this))
|
||||
val jazzListener = system.actorOf(Props[Listener])
|
||||
val musicListener = system.actorOf(Props[Listener])
|
||||
system.eventStream.subscribe(jazzListener, classOf[Jazz])
|
||||
system.eventStream.subscribe(musicListener, classOf[AllKindsOfMusic])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue