Change sender and senderfuture to Either
This commit is contained in:
parent
d5f09f8278
commit
92d5f2c347
9 changed files with 49 additions and 66 deletions
|
|
@ -48,7 +48,7 @@ trait Dispatcher { self: Actor =>
|
|||
|
||||
protected def dispatch: PartialFunction[Any, Unit] = {
|
||||
case a if routes.isDefinedAt(a) =>
|
||||
if (self.sender.isDefined) routes(a) forward transform(a)
|
||||
if (self.replyTo.isDefined) routes(a) forward transform(a)
|
||||
else routes(a) ! transform(a)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue