Update soketto dependency to 0.1.0. (#1167)

Also ensure error type in libp2p-websocket are `Sync`.
This commit is contained in:
Toralf Wittner 2019-06-05 17:43:33 +02:00 committed by Pierre Krieger
parent 134f472070
commit f7577c0f1f
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ rw-stream-sink = { version = "0.1.1", path = "../../misc/rw-stream-sink" }
tokio-codec = "0.1.1"
tokio-io = "0.1.12"
tokio-rustls = "0.10.0-alpha.3"
soketto = "0.1.0-alpha.1"
soketto = "0.1.0"
url = "1.7.2"
webpki-roots = "0.16.0"

View File

@ -30,7 +30,7 @@ pub enum Error<E> {
/// A TLS related error.
Tls(tls::Error),
/// Websocket handshake error.
Handshake(Box<dyn error::Error + Send>),
Handshake(Box<dyn error::Error + Send + Sync>),
/// The configured maximum of redirects have been made.
TooManyRedirects,
/// A multi-address is not supported.
@ -38,7 +38,7 @@ pub enum Error<E> {
/// The location header URL was invalid.
InvalidRedirectLocation,
/// Websocket base framing error.
Base(Box<dyn error::Error + Send>)
Base(Box<dyn error::Error + Send + Sync>)
}
impl<E: fmt::Display> fmt::Display for Error<E> {

View File

@ -139,7 +139,7 @@ pub enum Error {
/// An underlying I/O error.
Io(io::Error),
/// Actual TLS error.
Tls(Box<dyn std::error::Error + Send>),
Tls(Box<dyn std::error::Error + Send + Sync>),
/// The DNS name was invalid.
InvalidDnsName(String),