mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 06:09:53 +05:00
Use utils.BoolPointer for populate args.ProcessThreshold in fsevent and kamevent
This commit is contained in:
committed by
Dan Christian Bogos
parent
eb8bcd7508
commit
1338e43edb
@@ -399,7 +399,7 @@ func (fsev FSEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs) {
|
||||
args.GetAttributes = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
*args.ProcessThreshold = true
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -434,7 +434,7 @@ func (fsev FSEvent) V1InitSessionArgs() (args *sessions.V1InitSessionArgs) {
|
||||
args.GetAttributes = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
*args.ProcessThreshold = true
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -466,7 +466,7 @@ func (fsev FSEvent) V1TerminateSessionArgs() (args *sessions.V1TerminateSessionA
|
||||
args.ReleaseResources = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
*args.ProcessThreshold = true
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user