diff options
| author | Adam Soltys <[email protected]> | 2016-10-14 20:48:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2016-10-14 20:48:01 -0700 |
| commit | 6f906c289422c9d655e194390bb871b2e276f326 (patch) | |
| tree | 0973e01f99a1ac187d1431804b3768774ef1a02e /redis.js | |
| parent | 60b9265ca0ea5f880dea5c6d2cdef177e9d8dc86 (diff) | |
| download | coinos-server-6f906c289422c9d655e194390bb871b2e276f326.tar.gz coinos-server-6f906c289422c9d655e194390bb871b2e276f326.zip | |
Reimplement transactions index function with promises
Diffstat (limited to 'redis.js')
| -rw-r--r-- | redis.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |
