normanjoyner / serf-rpc

A simple nodejs module for interacting with the Serf RPC protocol.
GNU General Public License v2.0
5 stars 4 forks source link

RPC is a singleton #5

Open Downchuck opened 9 years ago

Downchuck commented 9 years ago

One can not create two separate serf instances as the RPC methods are not class based.

I tried to create two instances to work around an issue where two separate serf.listen() calls create an invalid state (tried serf.listen("user", ...) followed by serf.listen("query", ...) ) or otherwise exposes a bug in Seq state handling.