hamishforbes / lua-resty-upstream

Upstream connection load balancing and failover module for Openresty
MIT License
117 stars 26 forks source link

example is wrong #8

Closed matrixise closed 10 years ago

matrixise commented 10 years ago
upstream_socket  = require("resty.upstream.socket")
upstream_api = require("resty.upstream.api")

upstream, configured = socket_upstream:new("my_upstream_dict")
api = upstream_api:new(upstream)

In your example, you use socket_upstream and not upstream_socket

hamishforbes commented 10 years ago

Absolutely right, fixed! thank you

matrixise commented 10 years ago

On 19 May 2014, at 16:08, Hamish Forbes wrote:

Absolutely right, fixed! thank you


Reply to this email directly or view it on GitHub: https://github.com/hamishforbes/lua-resty-upstream/issues/8#issuecomment-43508415

Thanks for your patch,

Use it in production?

e

hamishforbes commented 10 years ago

Hi, I only fixed the example in the readme, there wasn't any change to code. I'm not currently using this library in production, but any help with testing and bug hunting is much appreciated.

matrixise commented 10 years ago

I think I will use it in a couple of months in production Thanks

On 19 mai 2014, at 06:39 PM, Hamish Forbes notifications@github.com wrote:

Hi, I only fixed the example in the readme, there wasn't any change to code. I'm not currently using this library in production, but any help with testing and bug hunting is much appreciated.

— Reply to this email directly or view it on GitHub.