Skip to content
Browse files

long lines

  • Loading branch information...
1 parent 88c14c8 commit bd0d3009261bbed1c79a38b8ecb11d33c4c7e54d @steveyen steveyen committed
Showing with 8 additions and 7 deletions.
  1. +2 −1 mc.js
  2. +6 −6 tap.js
View
3 mc.js
@@ -213,7 +213,8 @@ e.unpackMsgStr = function(s, start) {
null);
r.data = (r.datalen > 0 ?
s.slice(start + e.SIZEOF_HEADER + r.extlen + r.keylen,
- start + e.SIZEOF_HEADER + r.extlen + r.keylen + r.datalen) :
+ start + e.SIZEOF_HEADER + r.extlen + r.keylen +
+ r.datalen) :
null);
}
View
12 tap.js
@@ -1,10 +1,10 @@
// Example usage:
//
-// node tap.js -s 127.0.0.1:11210
-// node tap.js -s 127.0.0.1:11210 -e "dump(item)"
-// node tap.js -s 127.0.0.1:11210 -e "dumpAll(item)"
-// node tap.js -s 127.0.0.1:11210 -e 'if (item.key == "hi") { sys.puts("world " + item.data); }'
-// node tap.js -s 127.0.0.1:11210 -e 'if (item.key.indexOf("cust:") == 0) { emit(item.key, "1"); }'
+// node tap.js -s 127.0.0.1
+// node tap.js -s 127.0.0.1 -e "dump(item)"
+// node tap.js -s 127.0.0.1 -e "dumpAll(item)"
+// node tap.js -s 127.0.0.1 -e 'if (item.key == "hi") { sys.puts("world " + item.data); }'
+// node tap.js -s 127.0.0.1 -e 'if (item.key.indexOf("cust:") == 0) { emit(item.key, "1"); }'
//
var sys = require('sys'),
net = require('net'),
@@ -84,7 +84,7 @@ for (var i = 2; i < process.argv.length; i++) {
}
function usage() {
- sys.puts("tap.js - run javascript code against the items in a membase node\n");
+ sys.puts("tap.js - run javascript code against items in membase\n");
sys.puts(" usage: " + process.argv[0] + " tap.js" +
" [-b 'before javascript code']" +
" [-e 'during javascript code']" +

0 comments on commit bd0d300

Please sign in to comment.
Something went wrong with that request. Please try again.