summaryrefslogtreecommitdiff
path: root/core/examples/http_bench.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/examples/http_bench.js')
-rw-r--r--core/examples/http_bench.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/examples/http_bench.js b/core/examples/http_bench.js
index abe81e41e..4314ba680 100644
--- a/core/examples/http_bench.js
+++ b/core/examples/http_bench.js
@@ -85,7 +85,7 @@ function listen() {
/** Accepts a connection, returns rid. */
async function accept(rid) {
- return await sendAsync(ops["accept"], rid);
+ return sendAsync(ops["accept"], rid);
}
/**
@@ -93,12 +93,12 @@ async function accept(rid) {
* Returns bytes read.
*/
async function read(rid, data) {
- return await sendAsync(ops["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) {
- return await sendAsync(ops["write"], rid, data);
+ return sendAsync(ops["write"], rid, data);
}
function close(rid) {