Initial take on removing hardcoded value from SGFCR. See #1529
This commit is contained in:
parent
f6f52c455d
commit
0dc161c800
8 changed files with 60 additions and 54 deletions
|
|
@ -68,7 +68,7 @@ class ParentActor extends Actor {
|
|||
case "sgfcr" ⇒
|
||||
//#scatterGatherFirstCompletedRouter
|
||||
val scatterGatherFirstCompletedRouter = context.actorOf(
|
||||
Props[FibonacciActor].withRouter(ScatterGatherFirstCompletedRouter()),
|
||||
Props[FibonacciActor].withRouter(ScatterGatherFirstCompletedRouter(within = 2 seconds)),
|
||||
"router")
|
||||
implicit val timeout = context.system.settings.ActorTimeout
|
||||
val futureResult = scatterGatherFirstCompletedRouter ? FibonacciNumber(10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue