remove step 1

This commit is contained in:
Simon Martín 2018-07-31 10:26:46 +02:00
parent bb24b1dfcc
commit 23ef884e9b

View File

@ -73,23 +73,21 @@ TemplateMaps.prototype._redisCmd = function(redisFunc, redisArgs, callback) {
var that = this;
var db = that.db_signatures;
step(
function getRedisClient() {
that.redis_pool.acquire(db, this);
},
function executeQuery(err, data) {
assert.ifError(err);
redisClient = data;
redisArgs.push(this);
redisClient[redisFunc.toUpperCase()].apply(redisClient, redisArgs);
},
function releaseRedisClient(err, data) {
if ( ! _.isUndefined(redisClient) ) {
that.redis_pool.release(db, redisClient);
}
callback(err, data);
function getRedisClient() {
that.redis_pool.acquire(db, this);
},
function executeQuery(err, data) {
assert.ifError(err);
redisClient = data;
redisArgs.push(this);
redisClient[redisFunc.toUpperCase()].apply(redisClient, redisArgs);
},
function releaseRedisClient(err, data) {
if ( ! _.isUndefined(redisClient) ) {
that.redis_pool.release(db, redisClient);
}
);
callback(err, data);
}
};
var _reValidNameIdentifier = /^[a-z0-9][0-9a-z_\-]*$/i;