Permalink
Browse files

Port before host

  • Loading branch information...
1 parent 6769a19 commit ae150e2f25641483298f23b0297c8a77b3c406ac @tim-smart tim-smart committed Jan 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -185,7 +185,7 @@ Worker.prototype.next = function () {
Worker.prototype.start = function () {
var self = this;
- this.client = redis.createClient(this.host, this.port);
+ this.client = redis.createClient(this.port, this.host);
if (this.auth) {
this.client.auth(this.auth);
@@ -198,7 +198,7 @@ Worker.prototype.start = function () {
if (this.continual) {
if (!this._child_client) {
// Client for use with child jobs.
- this._child_client = redis.createClient(this.host, this.port);
+ this._child_client = redis.createClient(this.port, this.host);
if (this.auth) {
this._child_client.auth(this.auth);

0 comments on commit ae150e2

Please sign in to comment.