Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-03-27 14:58:46 +02:00
Родитель 75b1ab4d2b
Коммит 70e6de8738
4 изменённых файлов: 273 добавлений и 195 удалений

442
Cargo.lock сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -7,26 +7,26 @@ rust-version = "1.60"
[dependencies]
redis = { version = "0.22.3", features = ["tokio-comp", "aio", "cluster"] }
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
thiserror = "1.0.38"
serde = { version = "1.0.158", features = ["derive"] }
serde_json = "1.0.94"
thiserror = "1.0.40"
warp = { version = "0.3.3", features = ["tls"] }
tokio = { version = "1.25.0", features = ["macros", "rt-multi-thread", "signal"] }
futures = "0.3.26"
tokio = { version = "1.26.0", features = ["macros", "rt-multi-thread", "signal"] }
futures = "0.3.27"
log = "0.4.17"
sqlx = { version = "0.6.2", features = ["runtime-tokio-rustls", "any", "macros", "mysql", "sqlite", "postgres"] }
sqlx = { version = "0.6.3", features = ["runtime-tokio-rustls", "any", "macros", "mysql", "sqlite", "postgres"] }
dotenv = "0.15.0"
dashmap = "5.4.0"
once_cell = "1.17.1"
miette = { version = "5.5.0", features = ["fancy"] }
miette = { version = "5.6.0", features = ["fancy"] }
smallvec = { version = "1.10.0", features = ["serde"] }
reqwest = { version = "0.11.14", default-features = false, features = ["rustls-tls", "json"] }
reqwest = { version = "0.11.15", default-features = false, features = ["rustls-tls", "json"] }
warp-real-ip = "0.2.0"
parse-display = "0.8.0"
percent-encoding = "2.2.0"
rand = "0.8.5"
ahash = "0.8.3"
flexi_logger = { version = "0.25.1", features = ["colors", "atty"] }
flexi_logger = { version = "0.25.3", features = ["colors", "is-terminal"] }
tokio-stream = { version = "0.1.12", features = ["net"] }
structopt = "0.3.26"
derivative = "2.2.0"

Просмотреть файл

@ -6,10 +6,10 @@ edition = "2018"
[dependencies]
tungstenite = { version = "0.17.0", default-features = false, features = ["rustls-tls-webpki-roots"] }
serde_json = "1.0.93"
serde_json = "1.0.94"
ureq = "2.6.2"
flexi_logger = { version = "0.25.1", features = ["colors"] }
flexi_logger = { version = "0.25.3", features = ["colors"] }
log = "0.4.17"
base64 = "0.21.0"
miette = { version = "5.5.0", features = ["fancy"] }
miette = { version = "5.6.0", features = ["fancy"] }
url = "2.3.1"

Просмотреть файл

@ -287,7 +287,6 @@ async fn test_auth_failure() {
assert_next_message(&mut client, "err: Invalid credentials").await;
}
#[track_caller]
async fn assert_next_message(
client: &mut WebSocketStream<MaybeTlsStream<TcpStream>>,
expected: &str,
@ -303,7 +302,6 @@ async fn assert_next_message(
);
}
#[track_caller]
async fn assert_no_message(client: &mut WebSocketStream<MaybeTlsStream<TcpStream>>) {
sleep(Duration::from_millis(5)).await;
assert!(timeout(Duration::from_millis(10), client.next())