From 798904b0f2ed0c7284b67bba2f125f406b5850de Mon Sep 17 00:00:00 2001 From: Samrith Shankar Date: Fri, 20 Mar 2020 14:38:34 +0100 Subject: Add require-await lint rule (#4401) --- core/examples/http_bench.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/examples/http_bench.js b/core/examples/http_bench.js index 4314ba680..72f53550d 100644 --- a/core/examples/http_bench.js +++ b/core/examples/http_bench.js @@ -84,7 +84,7 @@ function listen() { } /** Accepts a connection, returns rid. */ -async function accept(rid) { +function accept(rid) { return sendAsync(ops["accept"], rid); } @@ -92,12 +92,12 @@ async function accept(rid) { * Reads a packet from the rid, presumably an http request. data is ignored. * Returns bytes read. */ -async function read(rid, data) { +function read(rid, data) { return sendAsync(ops["read"], rid, data); } /** Writes a fixed HTTP response to the socket rid. Returns bytes written. */ -async function write(rid, data) { +function write(rid, data) { return sendAsync(ops["write"], rid, data); } -- cgit v1.2.3