diff options
author | Georg Lauterbach <[email protected]> | 2024-11-15 10:42:00 +0000 |
---|---|---|
committer | Edward Wang <[email protected]> | 2024-11-22 16:03:16 -0800 |
commit | 1756948df77d257bddf7ab798cc3fddf348a91c8 (patch) | |
tree | 8096016b5230879371014d1d112a9f69c7258f02 | |
parent | 57725ee5e99a06e51033fc14331cc2ca76994c08 (diff) | |
download | pingora-1756948df77d257bddf7ab798cc3fddf348a91c8.tar.gz pingora-1756948df77d257bddf7ab798cc3fddf348a91c8.zip |
update `impl<T> UniqueID` to use correct return type
Includes-commit: d26d344e15bd411dd298b32ecc3e60ac233b0866
Replicated-from: https://github.com/cloudflare/pingora/pull/471
Co-authored-by: Matthew Gumport <[email protected]>
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-core/src/protocols/tls/rustls/stream.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -ab4b4c023bc3b26dfe253cf43ce410ccd76a6b27 +4cba0f37f5682058c05904a3c5a395919a8ac498 diff --git a/pingora-core/src/protocols/tls/rustls/stream.rs b/pingora-core/src/protocols/tls/rustls/stream.rs index a2c6811..7361bdb 100644 --- a/pingora-core/src/protocols/tls/rustls/stream.rs +++ b/pingora-core/src/protocols/tls/rustls/stream.rs @@ -21,7 +21,7 @@ use std::time::{Duration, SystemTime}; use crate::listeners::tls::Acceptor; use crate::protocols::raw_connect::ProxyDigest; -use crate::protocols::{tls::SslDigest, Peek, TimingDigest}; +use crate::protocols::{tls::SslDigest, Peek, TimingDigest, UniqueIDType}; use crate::protocols::{ GetProxyDigest, GetSocketDigest, GetTimingDigest, SocketDigest, Ssl, UniqueID, ALPN, }; @@ -216,7 +216,7 @@ impl<T> UniqueID for TlsStream<T> where T: UniqueID, { - fn id(&self) -> i32 { + fn id(&self) -> UniqueIDType { self.tls.stream.as_ref().unwrap().get_ref().0.id() } } |