Sorry : )

LastPopDate and Blocked may be grouped in a REDIS HashTable related to queue info. So you'll need to call just one get to obtain both (and in some cases just one set because LastPopDate and Blocked are related).


El 17/05/2013, a las 23:00, Aitor Magán García <notifications@github.com<mailto:notifications@github.com>> escribió:


In lib/dataSrv.js:

> @@ -627,16 +627,28 @@ var getQueue = function(appPrefix, queueId, callback) {
>    db.lrange(fullQueueIdH, 0, maxMessages, function onHRange(err, hQueue) {
>      db.lrange(fullQueueIdL, 0, maxMessages, function onLRange(err, lQueue) {
>        dbCluster.free(db);
> -      db.get(config.dbKeyQueuePrefix + appPrefix + queueId + ':lastPopDate',
> -          function(err, lastPopDate) {
> -            if (err) {
> -              lastPopDate = null;
> -            }
> -            if (callback) {
> -              callback(err, hQueue, lQueue, lastPopDate);
> +      db.get(config.dbKeyQueuePrefix + appPrefix + queueId + ':lastPopDate', function(err, lastPopDate) {


Sorry, but I don't understand your comment :(

—
Reply to this email directly or view it on GitHub<https://github.com/telefonicaid/PopBox/pull/125/files#r4284470>.


________________________________

Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx