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
6d382048df
commit
0f597a2b5b
@@ -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
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ func (kev KamEvent) V1AuthorizeArgs() (args *sessions.V1AuthorizeArgs) {
|
||||
args.GetAttributes = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
*args.ProcessThreshold = true
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -333,7 +333,7 @@ func (kev KamEvent) V1InitSessionArgs() (args *sessions.V1InitSessionArgs) {
|
||||
args.GetAttributes = true
|
||||
}
|
||||
if strings.Index(subsystems, utils.MetaThresholds) != -1 {
|
||||
*args.ProcessThreshold = true
|
||||
args.ProcessThreshold = utils.BoolPointer(true)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -385,7 +385,7 @@ func (kev KamEvent) 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