Skip to content

Commit c0a577d

Browse files
Safe implementation of the cleaner job
1 parent faf595d commit c0a577d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/io/otoroshi/wasm4s/scaladsl/integration.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class WasmIntegration(ic: WasmIntegrationContext) {
173173
if (!options.exists(_.immortal)) {
174174
val maxDur = options.map(_.maxUnusedDuration).getOrElse(globalNotUsedDuration)
175175
val availableVms = pool.availableVms.asScala.toSeq.filter(_.isAquired())
176-
val inUseVms = pool.availabinUseVmsleVms.asScala.toSeq
176+
val inUseVms = pool.inUseVms.asScala.toSeq
177177
val unusedVms = availableVms.filter(_.hasNotBeenUsedInTheLast(maxDur))
178178
val tooMuchMemoryVms = (availableVms ++ inUseVms)
179179
.filter(_.consumesMoreThanMemoryPercent(options.map(_.maxMemoryUsage).getOrElse(0.9)))

0 commit comments

Comments
 (0)