Skip to content

Commit c39dcd3

Browse files
committed
Make it compatible with scala-2.13
In scala-2.13 mapValues returns a MapView, and it cannot be cast to Map by default.
1 parent fd208a3 commit c39dcd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/v2/FunctionPullingContainerPool.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class FunctionPullingContainerPool(
440440
case GetState =>
441441
val totalContainers = busyPool.size + inProgressPool.size + warmedPool.size + prewarmedPool.size
442442
val prewarmedState =
443-
PrewarmedContainerPoolState(prewarmedPool.size, prewarmedPool.groupBy(_._2.kind).mapValues(_.size))
443+
PrewarmedContainerPoolState(prewarmedPool.size, prewarmedPool.groupBy(_._2.kind).mapValues(_.size).toMap)
444444
val busyState = WarmContainerPoolState(busyPool.size, busyPool.values.map(_.basicContainerInfo).toList)
445445
val pausedState = WarmContainerPoolState(warmedPool.size, warmedPool.values.map(_.basicContainerInfo).toList)
446446
sender() ! TotalContainerPoolState(totalContainers, inProgressPool.size, prewarmedState, busyState, pausedState)

0 commit comments

Comments
 (0)