Merge pull request #260 from picatz/minor-refactor-to-packets-queue

replace q.Protos[name] += 1 with q.Protos[name]++
This commit is contained in:
Simone Margaritelli 2018-05-02 17:52:31 +02:00 committed by GitHub
commit a87d84be76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ func (q *Queue) trackProtocols(pkt gopacket.Packet) {
if _, found := q.Protos[name]; !found {
q.Protos[name] = 1
} else {
q.Protos[name] += 1
q.Protos[name]++
}
q.Unlock()
}