mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 00:14:02 +03:00
Update to go 1.19
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user