Update to go 1.19

This commit is contained in:
9seconds
2022-08-09 17:41:59 +03:00
parent 9d67414db6
commit f48156814b
60 changed files with 260 additions and 260 deletions
+4 -4
View File
@@ -83,7 +83,7 @@ func (s *statsStatsd) ClientDisconnected(connectionType conntypes.ConnectionType
}
func (s *statsStatsd) changeConnections(connectionType conntypes.ConnectionType, addr *net.TCPAddr, increment int64) {
tags := make([]*statsStatsdTag, 0, 2) // nolint: gomnd
tags := make([]*statsStatsdTag, 0, 2) //nolint: gomnd
switch connectionType {
case conntypes.ConnectionTypeAbridged:
@@ -172,7 +172,7 @@ func (s *statsStatsd) initGauge(metric, key string, tags []statsd.Tag) {
s.seenMutex.RUnlock()
return
} else { // nolint: golint,revive
} else { //nolint: golint,revive
s.seenMutex.RUnlock()
}
@@ -194,8 +194,8 @@ func newStatsStatsd() Interface {
return &statsStatsd{
seen: make(map[string]struct{}),
client: statsd.NewClient(config.C.StatsdAddr.String(),
statsd.SendLoopCount(2), // nolint: gomnd
statsd.ReconnectInterval(10*time.Second), // nolint: gomnd
statsd.SendLoopCount(2), //nolint: gomnd
statsd.ReconnectInterval(10*time.Second), //nolint: gomnd
statsd.Logger(logger),
statsd.MetricPrefix(prefix),
statsd.TagStyle(config.C.StatsdTagsFormat),