=str #18763 remove unused parameter in PoolConductor
This commit is contained in:
parent
630bd948d5
commit
99a9c5964e
2 changed files with 4 additions and 4 deletions
|
|
@ -64,12 +64,12 @@ private object PoolConductor {
|
|||
+---------+
|
||||
|
||||
*/
|
||||
def apply(slotCount: Int, maxRetries: Int, pipeliningLimit: Int, log: LoggingAdapter): Graph[Ports, Any] =
|
||||
def apply(slotCount: Int, pipeliningLimit: Int, log: LoggingAdapter): Graph[Ports, Any] =
|
||||
FlowGraph.create() { implicit b ⇒
|
||||
import FlowGraph.Implicits._
|
||||
|
||||
val retryMerge = b.add(MergePreferred[RequestContext](1, eagerClose = true))
|
||||
val slotSelector = b.add(new SlotSelector(slotCount, maxRetries, pipeliningLimit, log))
|
||||
val slotSelector = b.add(new SlotSelector(slotCount, pipeliningLimit, log))
|
||||
val route = b.add(new Route(slotCount))
|
||||
val retrySplit = b.add(Broadcast[RawSlotEvent](2))
|
||||
val flatten = Flow[RawSlotEvent].mapAsyncUnordered(slotCount) {
|
||||
|
|
@ -106,7 +106,7 @@ private object PoolConductor {
|
|||
private case class Busy(openRequests: Int) extends SlotState { require(openRequests > 0) }
|
||||
private object Busy extends Busy(1)
|
||||
|
||||
private class SlotSelector(slotCount: Int, maxRetries: Int, pipeliningLimit: Int, log: LoggingAdapter)
|
||||
private class SlotSelector(slotCount: Int, pipeliningLimit: Int, log: LoggingAdapter)
|
||||
extends GraphStage[FanInShape2[RequestContext, SlotEvent, SwitchCommand]] {
|
||||
|
||||
private val ctxIn = Inlet[RequestContext]("requestContext")
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ private object PoolFlow {
|
|||
import settings._
|
||||
import FlowGraph.Implicits._
|
||||
|
||||
val conductor = b.add(PoolConductor(maxConnections, maxRetries, pipeliningLimit, log))
|
||||
val conductor = b.add(PoolConductor(maxConnections, pipeliningLimit, log))
|
||||
val slots = Vector
|
||||
.tabulate(maxConnections)(PoolSlot(_, connectionFlow, remoteAddress, settings))
|
||||
.map(b.add(_))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue