
'use strict';

const http = require('http');
const Koa = require('..');
const app = new Koa();

// number of middleware

let n = parseInt(process.env.MW || '1', 10);
console.log(`  ${n} middleware`);

while (n--) {
  app.use((ctx, next) => next());
}

const body = new Buffer('Hello World');

app.use((ctx, next) => next().then(() => ctx.body = body));

app.listen(3333);

@@ -13,38 +13,8 @@
 ';%0A%0A
-const http = require('http');%0A
 cons

Remove unused http variable