test discov

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

@ -24,8 +24,10 @@ func (r *Resolver) ResolveNow(o resolver.ResolveNowOptions) {
return return
} }
r.addrs = newConns 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) log.ZDebug(context.Background(), "resolve now finished", "target", r.target, "conns", r.addrs)
r.cc.UpdateState(resolver.State{Addresses: newConns})
} }
func (s *Resolver) Close() {} func (s *Resolver) Close() {}

Loading…
Cancel
Save