Skip to content

Commit

Permalink
Merge pull request #118 from vinted/grpc_dns_fix
Browse files Browse the repository at this point in the history
discovery/dns: resolve again if err happens
  • Loading branch information
GiedriusS authored Oct 21, 2024
2 parents 6a62128 + 056d0fc commit 44d4890
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/discovery/dns/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ func (r *resolver) run() {
raddr := grpcresolver.Address{Addr: addr}
state.Addresses = append(state.Addresses, raddr)
}
_ = r.cc.UpdateState(state)
err = r.cc.UpdateState(state)
if err != nil {
continue
}
}
select {
case <-r.ctx.Done():
Expand Down

0 comments on commit 44d4890

Please sign in to comment.