Skip to content

Commit

Permalink
doc: replace anonymous function with arrow function
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 refack committed Jan 10, 2019
1 parent 94d23ba commit 41625d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/guides/writing-and-running-benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit 41625d2

Please sign in to comment.