Skip to content

Commit 906cb90

Browse files
orhpeusjohnhurt
authored andcommitted
fix: Fixed compilation errors on Windows.
Includes-commit: 1467cec Replicated-from: #534
1 parent 256ba80 commit 906cb90

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.bleep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2815596ca30463adb7c8a47beb66577a0c6603eb
1+
0c088fcbf18292757b05a210e3d03c50feefbaf0

pingora-core/src/listeners/l4.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,14 @@ impl ListenerEndpointBuilder {
307307

308308
#[cfg(windows)]
309309
pub async fn listen(self) -> Result<ListenerEndpoint> {
310+
let listen_addr = self
311+
.listen_addr
312+
.expect("Tried to listen with no addr specified");
313+
let listener = bind(&listen_addr).await?;
314+
310315
Ok(ListenerEndpoint {
311316
listen_addr,
312-
listener: bind(&listen_addr).await?,
317+
listener: Arc::new(listener),
313318
})
314319
}
315320
}

0 commit comments

Comments
 (0)