refactor: Unified active health detection, supported by load balancing policy group

This commit is contained in:
Skyxim
2022-05-02 13:50:10 +08:00
parent 4b04faa88b
commit b929a19f48
4 changed files with 69 additions and 87 deletions

View File

@ -71,6 +71,9 @@ func (lb *LoadBalance) DialContext(ctx context.Context, metadata *C.Metadata, op
defer func() {
if err == nil {
c.AppendToChains(lb)
lb.onDialSuccess()
} else {
lb.onDialFailed()
}
}()