aboutsummaryrefslogtreecommitdiffstats
path: root/redis.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2016-10-14 20:48:01 -0700
committerAdam Soltys <[email protected]>2016-10-14 20:48:01 -0700
commit6f906c289422c9d655e194390bb871b2e276f326 (patch)
tree0973e01f99a1ac187d1431804b3768774ef1a02e /redis.js
parent60b9265ca0ea5f880dea5c6d2cdef177e9d8dc86 (diff)
downloadcoinos-server-6f906c289422c9d655e194390bb871b2e276f326.tar.gz
coinos-server-6f906c289422c9d655e194390bb871b2e276f326.zip
Reimplement transactions index function with promises
Diffstat (limited to 'redis.js')
-rw-r--r--redis.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis.js b/redis.js
index 85312c4e..717edc03 100644
--- a/redis.js
+++ b/redis.js
@@ -1,11 +1,13 @@
(function() {
- var settings;
+ var Promise, settings;
+
+ Promise = require('bluebird');
settings = {
port: 6379,
host: '127.0.0.1'
};
- module.exports = require('redis').createClient(settings.port, settings.host);
+ module.exports = Promise.promisifyAll(require('redis')).createClient(settings.port, settings.host);
}).call(this);