mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
Remove error handling for recordUsage
This commit is contained in:
committed by
Dan Christian Bogos
parent
ad16339c04
commit
e6d7a71aa7
@@ -357,9 +357,7 @@ func (rs Resources) allocateResource(ru *ResourceUsage, dryRun bool) (alcMessage
|
||||
if dryRun {
|
||||
return
|
||||
}
|
||||
if err = rs.recordUsage(ru); err != nil {
|
||||
return utils.EmptyString, err
|
||||
}
|
||||
rs.recordUsage(ru) // recordUsage returns error only when ru.ID already exists in the Usages map
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user