reverting clamp for callback cost (as it was before)

This commit is contained in:
payonel 2020-05-19 02:04:52 -07:00
parent 61780aa36e
commit 4857395e6a

View File

@ -280,7 +280,7 @@ class Machine(val host: MachineHost) extends prefab.ManagedEnvironment with mach
override def consumeCallBudget(callCost: Double): Unit = {
if (architecture.isInitialized && !inSynchronizedCall) {
val clampedCost = math.max(0.0, callCost)
val clampedCost = math.max(0.001, callCost)
if (clampedCost > callBudget) {
throw new LimitReachedException()
}