Skip to content

Commit ecaf3ea

Browse files
authored
Removed a duplicate binding for an address for rust-server (#22116)
* Removed a duplicate binding for an address for rust-server. The address binding happens higher up in the method. * Updated samples.
1 parent ce1e9e0 commit ecaf3ea

File tree

9 files changed

+0
-18
lines changed

9 files changed

+0
-18
lines changed

modules/openapi-generator/src/main/resources/rust-server/example-server-common.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280
8381
loop {

samples/server/petstore/rust-server/output/multipart-v3/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/no-example-v3/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/openapi-v3/examples/client/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/openapi-v3/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/ops-v3/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/ping-bearer-auth/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

samples/server/petstore/rust-server/output/rust-server-test/examples/server/server.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ pub async fn create(addr: &str, https: bool) {
7676
}
7777
} else {
7878
info!("Starting a server (over http, so no TLS)");
79-
// Using HTTP
80-
let listener = TcpListener::bind(&addr).await.unwrap();
8179
println!("Listening on http://{}", addr);
8280

8381
loop {

0 commit comments

Comments
 (0)