jbochi / lua-resty-cassandra

Pure Lua Cassandra client using CQL binary protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accepting multiple hosts with different ports when connecting

subnetmarco opened this issue · comments

Right now it's only possible to specify different hosts, but not different ports. It would be useful to be able to execute something like this instead:

connect("1.1.1.1:9042", "2.2.2.2:4123", "3.3.3.3:51231")

or

connect({ host = "1.1.1.1", port = 9042 }, 
        { host = "2.2.2.2", port = 4123 },
        { host = "3.3.3.3", port = 51231})

I can implement that if you want @jbochi

That's a nice idea. Feel free to send a pull request :)

On Fri, May 1, 2015, 11:59 AM Thibault Charbonnier notifications@github.com
wrote:

I can implement that if you want @jbochi https://github.com/jbochi


Reply to this email directly or view it on GitHub
#55 (comment)
.