summaryrefslogtreecommitdiff
path: root/core/examples/http_bench.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-03-16 10:22:16 +0100
committerGitHub <noreply@github.com>2020-03-16 10:22:16 +0100
commit1edb20b399944c6eec1d7c555ab170b6dd276840 (patch)
tree00be05e4ff944cc1db67a44d8f9a47f197c7e7bc /core/examples/http_bench.js
parent70434b5bfba701f9de2221b64ee40262c5370ae0 (diff)
refactor: add no-return-await lint rule (#4384)
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) {