OnIgnored increases the counter of ignored and accepted connections.
()
| 145 | |
| 146 | // OnIgnored increases the counter of ignored and accepted connections. |
| 147 | func (s *Statistics) OnIgnored() { |
| 148 | s.Lock() |
| 149 | defer s.Unlock() |
| 150 | s.Ignored++ |
| 151 | s.Accepted++ |
| 152 | } |
| 153 | |
| 154 | func (s *Statistics) incMap(m *map[string]uint64, key string) { |
| 155 | if val, found := (*m)[key]; found == false { |