summaryrefslogtreecommitdiff
path: root/core/examples/http_bench_json_ops.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-10-15 13:35:04 +0200
committerGitHub <noreply@github.com>2022-10-15 13:35:04 +0200
commit8283d37c51a8fd5f92ba3f8be0bb26f241f864b6 (patch)
treea29a2cb41e9165fc9700106061dfb734de83a296 /core/examples/http_bench_json_ops.rs
parent9c7a5c0c616eb309b582d61b61b9ef1cc4526909 (diff)
bench: avoid port collision (#16285)
Diffstat (limited to 'core/examples/http_bench_json_ops.rs')
-rw-r--r--core/examples/http_bench_json_ops.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs
index 6d61d35ec..6eaa99a38 100644
--- a/core/examples/http_bench_json_ops.rs
+++ b/core/examples/http_bench_json_ops.rs
@@ -130,7 +130,7 @@ fn create_js_runtime() -> JsRuntime {
#[op]
fn op_listen(state: &mut OpState) -> Result<ResourceId, Error> {
log::debug!("listen");
- let addr = "127.0.0.1:4544".parse::<SocketAddr>().unwrap();
+ let addr = "127.0.0.1:4570".parse::<SocketAddr>().unwrap();
let std_listener = std::net::TcpListener::bind(&addr)?;
std_listener.set_nonblocking(true)?;
let listener = TcpListener::try_from(std_listener)?;