mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-01 04:01:20 +00:00
Update soketto dependency to 0.1.0. (#1167)
Also ensure error type in libp2p-websocket are `Sync`.
This commit is contained in:
parent
134f472070
commit
f7577c0f1f
@ -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"
|
||||
|
||||
|
@ -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> {
|
||||
|
@ -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),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user