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: #24617
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
  • Loading branch information
ka2jun8 authored and BethGriggs committed Feb 11, 2019
1 parent 1eeb37c commit 73b99c7
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 73b99c7

Please sign in to comment.