Skip to content
Browse files

Merge pull request #4 from JakubOboza/master

redis client require
  • Loading branch information...
2 parents 2d901e6 + 125f2b2 commit d81ebce703eb61e42ada79a5c7ef7b04d2f29d57 @jbr committed
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/resque.js
View
9 lib/resque.js
@@ -1,6 +1,7 @@
-var resque = exports
-var EventEmitter = require ('events').EventEmitter
-var sys = require ('sys')
+var resque = exports;
+var EventEmitter = require ('events').EventEmitter;
+var sys = require ('sys');
+var redis = require ('redis');
var processAlive = function (pid, cb) {
require('child_process').exec (
@@ -12,7 +13,7 @@ var processAlive = function (pid, cb) {
}
var connectToRedis = function (options) {
- return require ('redis').createClient (options.port, options.host)
+ return redis.createClient (options.port, options.host);
}

0 comments on commit d81ebce

Please sign in to comment.
Something went wrong with that request. Please try again.