Skip to content

Commit

Permalink
rustls windows conditional compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew.dillingham committed Nov 5, 2024
1 parent 2228bfb commit 426b652
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pingora-core/src/protocols/tls/rustls/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,15 @@ impl<T> UniqueID for TlsStream<T>
where
T: UniqueID,
{
#[cfg(not(target_os = "windows"))]
fn id(&self) -> i32 {
self.tls.stream.as_ref().unwrap().get_ref().0.id()
}

#[cfg(target_os = "windows")]
fn id(&self) -> usize {
self.tls.stream.as_ref().unwrap().get_ref().0.id()
}
}

impl<T> Ssl for TlsStream<T> {
Expand Down

0 comments on commit 426b652

Please sign in to comment.