From 7fce3f2bff310f62c4c2ad906cfab0b4f5020916 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Mon, 10 May 2021 17:24:43 +0300 Subject: [PATCH] Give up on handling error returned by clearUsage() from allocateResource func in resources.go --- engine/resources.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/resources.go b/engine/resources.go index b4c98d921..0e9d88714 100644 --- a/engine/resources.go +++ b/engine/resources.go @@ -289,9 +289,7 @@ func (rs Resources) allocateResource(ru *ResourceUsage, dryRun bool) (alcMessage for _, r := range rs { r.removeExpiredUnits() if _, hasID := r.Usages[ru.ID]; hasID && !dryRun { // update - if err = r.clearUsage(ru.ID); err != nil { - return - } + r.clearUsage(ru.ID) } if r.rPrf == nil { err = fmt.Errorf("empty configuration for resourceID: %s", r.TenantID())