Skip to content

Commit

Permalink
fix: Fixed compilation errors on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
orhpeus committed Feb 25, 2025
1 parent eef3576 commit 1467cec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pingora-core/src/listeners/l4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,14 @@ impl ListenerEndpointBuilder {

#[cfg(windows)]
pub async fn listen(self) -> Result<ListenerEndpoint> {
let listen_addr = self
.listen_addr
.expect("Tried to listen with no addr specified");
let listener = bind(&listen_addr).await?;

Ok(ListenerEndpoint {
listen_addr,
listener: bind(&listen_addr).await?,
listener: Arc::new(listener),
})
}
}
Expand Down

0 comments on commit 1467cec

Please # to comment.