diff options
Diffstat (limited to 'core/examples/http_bench.js')
-rw-r--r-- | core/examples/http_bench.js | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |