=act #3572 Add parens to sender
* because it is not referentially transparent; normally we reserved parens for side-effecting code but given how people thoughtlessly close over it we revised that that decision for sender * caller can still omit parens
This commit is contained in:
parent
537840bd2a
commit
a11fb1dafc
202 changed files with 631 additions and 620 deletions
|
|
@ -136,16 +136,16 @@ private[akka] class RemoteWatcher(
|
|||
|
||||
// test purpose
|
||||
case Stats ⇒
|
||||
sender ! Stats(
|
||||
sender() ! Stats(
|
||||
watching = watching.size,
|
||||
watchingNodes = watchingNodes.size)(watching)
|
||||
}
|
||||
|
||||
def receiveHeartbeat(): Unit =
|
||||
sender ! selfHeartbeatRspMsg
|
||||
sender() ! selfHeartbeatRspMsg
|
||||
|
||||
def receiveHeartbeatRsp(uid: Int): Unit = {
|
||||
val from = sender.path.address
|
||||
val from = sender().path.address
|
||||
|
||||
if (failureDetector.isMonitoring(from))
|
||||
log.debug("Received heartbeat rsp from [{}]", from)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue