mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Simplify event cloning (ees)
This commit is contained in:
committed by
Dan Christian Bogos
parent
3637e4364e
commit
c5b197db6f
@@ -160,7 +160,7 @@ func (eeS *EventExporterS) V1ProcessEvent(ctx *context.Context, cgrEv *engine.CG
|
||||
}
|
||||
}
|
||||
|
||||
var exportEvent *utils.CGREvent
|
||||
exportEvent := cgrEv.CGREvent
|
||||
if eeCfg.Flags.GetBool(utils.MetaAttributes) {
|
||||
if exportEvent, err = eeS.attrSProcessEvent(
|
||||
cgrEv.CGREvent,
|
||||
@@ -172,9 +172,6 @@ func (eeS *EventExporterS) V1ProcessEvent(ctx *context.Context, cgrEv *engine.CG
|
||||
return
|
||||
}
|
||||
}
|
||||
if exportEvent == nil {
|
||||
exportEvent = cgrEv.CGREvent
|
||||
}
|
||||
|
||||
eeS.eesMux.RLock()
|
||||
eeCache, hasCache := eeS.eesChs[eeCfg.Type]
|
||||
|
||||
@@ -69,7 +69,7 @@ func TestEEsExportEventChanges(t *testing.T) {
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns":["*localhost"],
|
||||
"attributes_conns":["*internal"],
|
||||
"exporters": [
|
||||
{
|
||||
"id": "exporter1",
|
||||
|
||||
Reference in New Issue
Block a user