Kong / lua-resty-dns-client

Lua DNS client, load balancer, and utility library
http://kong.github.io/lua-resty-dns-client/topics/README.md.html
Apache License 2.0
152 stars 52 forks source link

fix(balancer) introduce a handle to set peer status #60

Closed Tieske closed 6 years ago

Tieske commented 6 years ago

Setting status wasn't always possible, if an address still contained a name instead of an ip (SRV -> A -> ip). By returning a handle, the proper reference is preserved, and as a side effect the retryCount parameter is now obsolete.

Signature of getPeer changed, and hence this is a breaking change

NOTE: this is not against master, but split-balancer to avoid too many conflicts