=act,clu,con,doc,per,rem,sam #15114 append missing parens at Actor.sender() invocations
This commit is contained in:
parent
67784dbdae
commit
f4793a399f
30 changed files with 78 additions and 78 deletions
|
|
@ -95,7 +95,7 @@ class Worker extends Actor with ActorLogging {
|
|||
|
||||
def receive = LoggingReceive {
|
||||
case Start if progressListener.isEmpty =>
|
||||
progressListener = Some(sender)
|
||||
progressListener = Some(sender())
|
||||
context.system.scheduler.schedule(Duration.Zero, 1 second, self, Do)
|
||||
|
||||
case Do =>
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ object PullReadingExample {
|
|||
//#pull-accepting
|
||||
case Bound(localAddress) =>
|
||||
// Accept connections one by one
|
||||
sender ! ResumeAccepting(batchSize = 1)
|
||||
context.become(listening(sender))
|
||||
sender() ! ResumeAccepting(batchSize = 1)
|
||||
context.become(listening(sender()))
|
||||
//#pull-accepting
|
||||
monitor ! localAddress
|
||||
}
|
||||
|
|
@ -34,8 +34,8 @@ object PullReadingExample {
|
|||
//#pull-accepting-cont
|
||||
def listening(listener: ActorRef): Receive = {
|
||||
case Connected(remote, local) =>
|
||||
val handler = context.actorOf(Props(classOf[PullEcho], sender))
|
||||
sender ! Register(handler, keepOpenOnPeerClosed = true)
|
||||
val handler = context.actorOf(Props(classOf[PullEcho], sender()))
|
||||
sender() ! Register(handler, keepOpenOnPeerClosed = true)
|
||||
listener ! ResumeAccepting(batchSize = 1)
|
||||
}
|
||||
//#pull-accepting-cont
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ trait PersistenceDocSpec {
|
|||
def receive = {
|
||||
case p @ Persistent(payload, _) =>
|
||||
//#channel-example-reply
|
||||
channel ! Deliver(p.withPayload(s"processed ${payload}"), sender.path)
|
||||
channel ! Deliver(p.withPayload(s"processed ${payload}"), sender().path)
|
||||
//#channel-example-reply
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue