mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Give up on handling error returned by clearUsage() from allocateResource func in resources.go
This commit is contained in:
committed by
Dan Christian Bogos
parent
a6b8af0e96
commit
7fce3f2bff
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user