Skip to content
Permalink
Browse files

doc: replace anonymous function with arrow function

PR-URL: #24617
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information...
ka2jun8 authored and BethGriggs committed Nov 24, 2018
1 parent 1eeb37c commit 73b99c701356d769483d6f0f989b254aba134fe5
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/guides/writing-and-running-benchmarks.md
@@ -444,14 +444,14 @@ function main(conf) {
const http = require('http');
const len = conf.kb * 1024;
const chunk = Buffer.alloc(len, 'x');
const server = http.createServer(function(req, res) {
const server = http.createServer((req, res) => {
res.end(chunk);
});
server.listen(common.PORT, function() {
server.listen(common.PORT, () => {
bench.http({
connections: conf.connections,
}, function() {
}, () => {
server.close();
});
});

0 comments on commit 73b99c7

Please sign in to comment.
You can’t perform that action at this time.