Fix: a shared fastSingle.Do() may cause providers untouched (#2378)

This commit is contained in:
wwqgtxx
2022-11-04 13:11:01 +08:00
committed by GitHub
parent c8bc11d61d
commit 19b7c7f52a
4 changed files with 16 additions and 10 deletions

View File

@ -66,9 +66,9 @@ type Provider interface {
type ProxyProvider interface {
Provider
Proxies() []constant.Proxy
// ProxiesWithTouch is used to inform the provider that the proxy is actually being used while getting the list of proxies.
// Touch is used to inform the provider that the proxy is actually being used while getting the list of proxies.
// Commonly used in DialContext and DialPacketConn
ProxiesWithTouch() []constant.Proxy
Touch()
HealthCheck()
}