test discov

test-errcode
wangchuxiao 1 year ago
parent 80c46919dd
commit 228514b1bf

@ -24,8 +24,10 @@ func (r *Resolver) ResolveNow(o resolver.ResolveNowOptions) {
return
}
r.addrs = newConns
if err := r.cc.UpdateState(resolver.State{Addresses: newConns}); err != nil {
log.ZError(context.Background(), "UpdateState error", err, "conns", newConns)
}
log.ZDebug(context.Background(), "resolve now finished", "target", r.target, "conns", r.addrs)
r.cc.UpdateState(resolver.State{Addresses: newConns})
}
func (s *Resolver) Close() {}

Loading…
Cancel
Save