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

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

parent 528ec8c1
No related branches found
No related tags found
No related merge requests found
...@@ -187,11 +187,7 @@ func PBToFlow(pb *Record) *model.Record { ...@@ -187,11 +187,7 @@ func PBToFlow(pb *Record) *model.Record {
if len(pb.GetNetworkEventsMetadata()) != 0 { if len(pb.GetNetworkEventsMetadata()) != 0 {
for _, e := range pb.GetNetworkEventsMetadata() { for _, e := range pb.GetNetworkEventsMetadata() {
m := map[string]string{} out.NetworkMonitorEventsMD = append(out.NetworkMonitorEventsMD, e.Events)
for k, v := range e.Events {
m[k] = v
}
out.NetworkMonitorEventsMD = append(out.NetworkMonitorEventsMD, m)
} }
protoLog.Tracef("decoded Network events monitor metadata: %v", out.NetworkMonitorEventsMD) 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