Update code to the latest golangci-lint

This commit is contained in:
9seconds
2021-07-31 11:35:05 +03:00
parent dc99dd165e
commit eaa757b6d0
9 changed files with 14 additions and 18 deletions
+2 -3
View File
@@ -119,11 +119,10 @@ func (p prometheusProcessor) EventReplayAttack(_ mtglib.EventReplayAttack) {
}
func (p prometheusProcessor) Shutdown() {
for _, v := range p.streams {
for k, v := range p.streams {
releaseStreamInfo(v)
delete(p.streams, k)
}
p.streams = make(map[string]*streamInfo)
}
// PrometheusFactory is a factory of events.Observers which collect