Add review changes

This commit is contained in:
Patrick Pacher
2020-10-01 16:14:16 +02:00
parent 7a83e772f4
commit 1b45659f47
2 changed files with 5 additions and 5 deletions

View File

@@ -25,18 +25,18 @@ func Start() error {
return nil
}
var ch = Packets
var inputPackets = Packets
if packetMetricsDestination != "" {
go metrics.writeMetrics()
ch = make(chan packet.Packet)
inputPackets = make(chan packet.Packet)
go func() {
for p := range ch {
for p := range inputPackets {
Packets <- tracePacket(p)
}
}()
}
return start(ch)
return start(inputPackets)
}
// Stop starts the interception.