mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
remove useless codes
This commit is contained in:
@@ -78,7 +78,7 @@ func NewConnPool(ms *metrics.Set, name, addr string, handshakeFunc handshake.Fun
|
||||
connKeepAliveInterval: defaultConnKeepAliveInterval,
|
||||
dialTimeout: dialTimeout,
|
||||
}
|
||||
//cp.checkAvailability(true)
|
||||
cp.checkAvailability(true)
|
||||
_ = ms.NewGauge(fmt.Sprintf(`vm_tcpdialer_conns_idle{name=%q, addr=%q}`, name, addr), func() float64 {
|
||||
cp.mu.Lock()
|
||||
n := len(cp.conns)
|
||||
|
||||
Reference in New Issue
Block a user