summaryrefslogtreecommitdiff
path: root/core/examples/http_bench.js
diff options
context:
space:
mode:
authorSamrith Shankar <samrith-s@users.noreply.github.com>2020-03-20 14:38:34 +0100
committerGitHub <noreply@github.com>2020-03-20 09:38:34 -0400
commit798904b0f2ed0c7284b67bba2f125f406b5850de (patch)
tree5aba8d35aa8984aa778c894258bcaed56f1ce17c /core/examples/http_bench.js
parent35f6e2e45ddb96524a6bdf54b0a6155caa88d5e0 (diff)
Add require-await lint rule (#4401)
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 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);
}