Skip to content
Snippets Groups Projects
Unverified Commit c2d377a1 authored by Joel Takvorian's avatar Joel Takvorian Committed by GitHub
Browse files

NETOBSERV-2084: (nit) no need to copy map anymore (#540)

parent c83af332
No related branches found
No related tags found
No related merge requests found
......@@ -187,11 +187,7 @@ func PBToFlow(pb *Record) *model.Record {
if len(pb.GetNetworkEventsMetadata()) != 0 {
for _, e := range pb.GetNetworkEventsMetadata() {
m := map[string]string{}
for k, v := range e.Events {
m[k] = v
}
out.NetworkMonitorEventsMD = append(out.NetworkMonitorEventsMD, m)
out.NetworkMonitorEventsMD = append(out.NetworkMonitorEventsMD, e.Events)
}
protoLog.Tracef("decoded Network events monitor metadata: %v", out.NetworkMonitorEventsMD)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment