Permalink
Browse files

remove upnode.ping completely since middleware went away in dnode 1.0.0

  • Loading branch information...
1 parent 007a126 commit 26f8a1c1d2fd1a20b52d8d31d704eaca94f794e0 @substack committed Jul 28, 2012
Showing with 1 addition and 7 deletions.
  1. +0 −6 index.js
  2. +1 −1 test/simple.js
View
@@ -145,12 +145,6 @@ function createConnectionUp () {
return up;
}
-upnode.ping = function (client, conn) {
- if (!this.ping) this.ping = function (cb) {
- if (typeof cb === 'function') cb()
- };
-};
-
upnode.connect = function () {
return upnode({}).connect.apply(null, arguments);
};
View
@@ -62,7 +62,7 @@ test('simple', function (t) {
server = net.createServer(function (stream) {
ds = dnode(function (client, conn) {
this.time = function (cb) { cb(Date.now()) };
- upnode.ping.call(this, this, conn);
+ this.ping = function (cb) { cb() };
});
ds.pipe(stream).pipe(ds);
});

0 comments on commit 26f8a1c

Please sign in to comment.