Skip to content

Commit

Permalink
fix(viz): use Error::boxed
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Dec 14, 2023
1 parent 1be512f commit d14b310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viz/src/tls/native_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Config {
pub fn build(self) -> Result<TlsAcceptor> {
TlsAcceptorWrapper::new(self.identity)
.map(Into::into)
.map_err(Error::normal)
.map_err(Error::boxed)
}
}

Expand All @@ -46,7 +46,7 @@ impl Listener<TcpListener, TlsAcceptor> {
/// Will return `Err` if accepting the stream fails.
pub async fn accept(&self) -> Result<(TlsStream<TcpStream>, SocketAddr)> {
let (stream, addr) = self.inner.accept().await?;
let tls_stream = self.acceptor.accept(stream).await.map_err(Error::normal)?;
let tls_stream = self.acceptor.accept(stream).await.map_err(Error::boxed)?;
Ok((tls_stream, addr))
}
}

0 comments on commit d14b310

Please sign in to comment.