mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 00:28:44 +05:00
Fix clone function in resourcescfg
This commit is contained in:
committed by
Dan Christian Bogos
parent
8aef9b6239
commit
9f24c47d61
@@ -155,11 +155,7 @@ func (rsOpts *ResourcesOpts) Clone() (cln *ResourcesOpts) {
|
||||
if rsOpts.UsageTTL != nil {
|
||||
cln.UsageTTL = utils.DurationPointer(*rsOpts.UsageTTL)
|
||||
}
|
||||
return &ResourcesOpts{
|
||||
UsageID: rsOpts.UsageID,
|
||||
UsageTTL: rsOpts.UsageTTL,
|
||||
Units: rsOpts.Units,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Clone returns a deep copy of ResourceSConfig
|
||||
|
||||
Reference in New Issue
Block a user