From 29110cbf74246f0c479ea68f2c0d1ab9aa46e202 Mon Sep 17 00:00:00 2001 From: itsusinn Date: Tue, 18 Jan 2022 23:12:07 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 14 +++++++------- src/message/handlers/send.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f452657..1654449 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] # bot -teloxide ={ version = "0.5.2",default-features = false,features = ["frunk", "macros", "auto-send","ctrlc_handler","rustls"] } +teloxide ={ version = "0.5.3",default-features = false,features = ["frunk", "macros", "auto-send","ctrlc_handler","rustls"] } teloxide-core = { version = "0.3.3",default-features = false, features = ["rustls"] } teloxide-macros = "0.4.1" @@ -16,13 +16,13 @@ env_logger = "0.9.0" log = "0.4.14" # serialization -serde = { version = "1.0.130", features = ["derive","rc"] } +serde = { version = "1.0.130",default-features = false,features = ["derive","rc"] } serde_json = "1.0.68" serde_yaml = "0.8.21" # asynchronous async-std = "1.10.0" -tokio = { version = "1.12.0", features = ["rt-multi-thread", "macros","signal"] } +tokio = { version = "1.15.0",default-features = false,features = ["rt-multi-thread", "macros","signal"] } tokio-util = "0.6.8" tokio-stream = "0.1.7" smol = "1.2.5" @@ -40,7 +40,7 @@ aes-gcm = {version = "0.9.4",features = ["std"]} # tools url = "2.2.2" -dashmap = { version = "4.0.2" , features = ["serde"] } +dashmap = { version = "5.0.0",features = ["serde"] } once_cell = "1.8.0" educe = "0.4.18" num-bigint = "0.4.2" @@ -51,14 +51,14 @@ bytes = { version = "1.1.0", features = ["serde"] } warp = "0.3.1" # http -reqwest = { version = "0.11.5" ,default-features = false ,features = ["rustls","socks","rustls-tls-webpki-roots","stream","multipart"] } +reqwest = { version = "0.11.9" ,default-features = false ,features = ["rustls","socks","rustls-tls-webpki-roots","stream","multipart"] } # database sled = "0.34.7" # mesagisto nats = "0.16.0" -mesagisto-client = { git = "https://github.com/MeowCat-Studio/mesagisto-client-rs.git", rev = "cfe7a4" } +mesagisto-client = { branch = "master", git = "https://github.com/MeowCat-Studio/mesagisto-client-rs.git"} # mesagisto-client = { path = "../../mesagisto-client/rust" } automatic-config = { git = "https://github.com/Itsusinn/automatic-config-rs.git" } singleton = { git = "https://github.com/Itsusinn/singleton-rs.git", rev = "bee321c" } @@ -68,7 +68,7 @@ either = "1.6.1" base64-url = "1.4.10" [dependencies.pyo3] -version = "0.14.5" +version = "0.15.1" optional = true features = ["auto-initialize"] diff --git a/src/message/handlers/send.rs b/src/message/handlers/send.rs index 6c8a330..b4604f7 100644 --- a/src/message/handlers/send.rs +++ b/src/message/handlers/send.rs @@ -94,7 +94,7 @@ pub async fn answer_common(cx: Arc) -> anyhow::Result<()> { let packet = Packet::from(message.tl())?; SERVER - .send_and_receive(target, address, packet, receive_from_server) + .send_and_receive(target.to_be_bytes().to_vec(), address, packet, receive_from_server) .await?; Ok(()) }