mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-18 14:40:26 +01:00
476bf400ac
- Rename GetStatDialFunc to NewStatDialFunc, since it returns new function with every call
- NewStatDialFunc isn't related to http in any way, so it must be moved from lib/httputils to lib/netutil
- Simplify the implementation of NewStatDialFunc by removing sync.Map from there.
- Use netutil.NewStatDialFunc at app/vmauth and lib/promscrape/discoveryutils
- Use gauge instead of counter type for *_conns metric
This is a follow-up for
|
||
---|---|---|
.. | ||
conn_pool_test.go | ||
conn_pool.go | ||
conn.go | ||
dns_test.go | ||
dns.go | ||
netutil.go | ||
proxyprotocol_test.go | ||
proxyprotocol.go | ||
statdial_test.go | ||
statdial.go | ||
tcpdialer_default.go | ||
tcpdialer_linux.go | ||
tcpdialer.go | ||
tcplistener.go | ||
tls_test.go | ||
tls.go |