remove extra parameter to match Listener constructor

This commit is contained in:
ortigali 2017-01-16 11:52:45 +05:00
parent 4a9c753710
commit c44275b8b7

View file

@ -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]) system.eventStream.subscribe(listener, classOf[DeadLetter])
//#deadletters //#deadletters
} }
@ -166,8 +166,8 @@ class LoggingDocSpec extends AkkaSpec {
} }
} }
val jazzListener = system.actorOf(Props(classOf[Listener], this)) val jazzListener = system.actorOf(Props[Listener])
val musicListener = system.actorOf(Props(classOf[Listener], this)) val musicListener = system.actorOf(Props[Listener])
system.eventStream.subscribe(jazzListener, classOf[Jazz]) system.eventStream.subscribe(jazzListener, classOf[Jazz])
system.eventStream.subscribe(musicListener, classOf[AllKindsOfMusic]) system.eventStream.subscribe(musicListener, classOf[AllKindsOfMusic])