fix: load-balance's touch not effected

This commit is contained in:
wwqgtxx 2023-03-09 11:09:36 +08:00
parent bae61a8152
commit a454a7f736

View File

@ -216,7 +216,7 @@ func strategyStickySessions() strategyFn {
// Unwrap implements C.ProxyAdapter
func (lb *LoadBalance) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
proxies := lb.GetProxies(touch)
return lb.strategyFn(proxies, metadata, true)
return lb.strategyFn(proxies, metadata, touch)
}
// MarshalJSON implements C.ProxyAdapter