From 4df0cf37cd5c05d96a80bc652685c0f32e40c22f Mon Sep 17 00:00:00 2001 From: andronache Date: Thu, 14 Oct 2021 08:19:49 +0300 Subject: [PATCH] Removed useless case for threshold cdrs process event --- engine/cdrs.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/engine/cdrs.go b/engine/cdrs.go index 800e90e86..d662832ee 100644 --- a/engine/cdrs.go +++ b/engine/cdrs.go @@ -146,9 +146,6 @@ func (cdrS *CDRServer) thdSProcessEvent(ctx *context.Context, cgrEv *utils.CGREv var tIDs []string // we clone the CGREvent so we can add EventType without being propagated cgrEv = cgrEv.Clone() - if cgrEv.APIOpts == nil { - cgrEv.APIOpts = make(map[string]interface{}) - } cgrEv.APIOpts[utils.MetaEventType] = utils.CDR if err = cdrS.connMgr.Call(ctx, cdrS.cfg.CdrsCfg().ThresholdSConns, utils.ThresholdSv1ProcessEvent,