doc: replace anonymous function with arrow function

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
ka2jun8 authored and Rod Vagg committed 2019-02-28 23:37:32 +11:00
1 parent 5babfcb62a
commit 5b0daafd48
1 file changed
+3 -3
+3 -3
View File
@@ -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();
});
});