From 6396707374eb20efb8e4b4e2adc3fec395bb6dfe Mon Sep 17 00:00:00 2001 From: theory Date: Mon, 31 Mar 2014 10:31:08 -0600 Subject: [PATCH] boo --- package.json | 2 +- shots.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 46cf373a..18c02db1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name": "gun" -, "version": "0.0.1x" +, "version": "0.0.1y" , "author": "Mark Nadal" , "description": "Graph engine." , "engines": { diff --git a/shots.js b/shots.js index 9715c617..c390d47a 100644 --- a/shots.js +++ b/shots.js @@ -103,6 +103,7 @@ module.exports = require('theory') opt.redis.config(); var val = a.text.is(value)? value : a.text.ify(value); if(a.fns.is(fn)){ store.stay(key, value, fn) } + console.log("potential setex:", key, opt.redis.expire, val); if(opt.redis.max){ store.client.set(key, val, function(e,r){ if(e){ @@ -203,10 +204,10 @@ module.exports = require('theory') shot.spray.transform(g, m, done, e); }); if(m.where && !m.where.mid && opt.src.send){ - var who = m.who, env = m.where; - m.who = {}; m.where.at = null; + var who = m.who; + m.who = {}; opt.src.send(m); - m.who = who; m.where.at = (env||{}).at; + m.who = who; } } shot.pump = function(fn){