Skip to content

Commit

Permalink
Fix scala 2.13 compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ningyougang committed May 26, 2022
1 parent 4801f71 commit 4b2b1ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ class FunctionPullingContainerPool(
val prewarmedSize = prewarmedPool.size
val busySize = busyPool.size
val warmedSize = warmedPool.size
val warmedPoolMap: Map[(String, String), Int] = warmedPool groupBy {
val warmedPoolMap: immutable.Map[(String, String), Int] = warmedPool groupBy {
case (_, warmedData) => (warmedData.invocationNamespace, warmedData.action.toString)
} mapValues (_.size)
for((data, size) <- warmedPoolMap) {
for ((data, size) <- warmedPoolMap) {
val tags: Option[Map[String, String]] = Some(Map("namespace" -> data._1, "action" -> data._2))
MetricEmitter.emitHistogramMetric(LoggingMarkers.INVOKER_CONTAINERPOOL_CONTAINER("warmed", tags), size)
}
Expand Down

0 comments on commit 4b2b1ba

Please sign in to comment.