Bump tokio-tungstenite to 0.20
parent
a55af189d4
commit
92c1406b4f
|
@ -14,7 +14,7 @@ resolver = "2"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls-webpki-roots"]}
|
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls-webpki-roots"]}
|
||||||
tokio-tungstenite = { version = "0.19", features = ["rustls-tls-webpki-roots"], optional = true}
|
tokio-tungstenite = { version = "0.20", features = ["rustls-tls-webpki-roots"], optional = true}
|
||||||
tokio = { version = "1.16", default-features = false, features = ["io-util"], optional = true }
|
tokio = { version = "1.16", default-features = false, features = ["io-util"], optional = true }
|
||||||
futures-util = { version = "0.3", optional = true}
|
futures-util = { version = "0.3", optional = true}
|
||||||
async-stream = { version = "0.3", optional = true}
|
async-stream = { version = "0.3", optional = true}
|
||||||
|
|
|
@ -438,7 +438,7 @@ impl Display for SetErrorType {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_timestamp(timestamp: i64) -> DateTime<Utc> {
|
pub fn from_timestamp(timestamp: i64) -> DateTime<Utc> {
|
||||||
DateTime::<Utc>::from_utc(
|
DateTime::from_naive_utc_and_offset(
|
||||||
NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap_or_default(),
|
NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap_or_default(),
|
||||||
Utc,
|
Utc,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue