From 80786b279fda40b5128af353d914c0d2917bcd71 Mon Sep 17 00:00:00 2001 From: Conor Brosnan Date: Mon, 12 Dec 2022 14:35:23 +1000 Subject: [PATCH] review feedback --- Cargo.lock | 27 +++++++++---------- shotover-proxy/Cargo.toml | 4 +-- .../tests/cassandra_int_tests/routing.rs | 6 ++--- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 42767c36b..7bc067feb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -314,12 +314,11 @@ checksum = "8234d29d30873ab5a41e3557b8515d3ecbaefb1ea5be579425b3b0074b6d0e40" [[package]] name = "cassandra-protocol" version = "2.0.1" -source = "git+https://github.com/conorbros/cdrs-tokio?branch=8.0-dev#19aa0807cd1740d85d3a7f88c194f336b550d1a0" +source = "git+https://github.com/krojew/cdrs-tokio?branch=8.0-dev#546b7b3128682bd23cfab9a8f47465e11bb51598" dependencies = [ "arc-swap", "arrayref", "bitflags", - "bytes", "chrono", "crc32fast", "derivative", @@ -332,7 +331,6 @@ dependencies = [ "snap", "thiserror", "time 0.3.17", - "tracing", "uuid", ] @@ -351,7 +349,7 @@ checksum = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4" [[package]] name = "cdrs-tokio" version = "7.0.2" -source = "git+https://github.com/conorbros/cdrs-tokio?branch=8.0-dev#19aa0807cd1740d85d3a7f88c194f336b550d1a0" +source = "git+https://github.com/krojew/cdrs-tokio?branch=8.0-dev#546b7b3128682bd23cfab9a8f47465e11bb51598" dependencies = [ "arc-swap", "atomic", @@ -1400,9 +1398,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec947b7a4ce12e3b87e353abae7ce124d025b6c7d6c5aea5cc0bcf92e9510ded" +checksum = "11b0d96e660696543b251e58030cf9787df56da39dab19ad60eae7353040917e" [[package]] name = "is-terminal" @@ -2161,9 +2159,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "0.3.15" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15eb2c6e362923af47e13c23ca5afb859e83d54452c55b0b9ac763b8f7c1ac16" +checksum = "ac662b3a6490de378b0ee15cf2dfff7127aebfe0b19acc65e7fbca3d299c3788" [[package]] name = "ppv-lite86" @@ -2323,11 +2321,10 @@ dependencies = [ [[package]] name = "rayon" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e060280438193c554f654141c9ea9417886713b7acd75974c85b18a69a88e0b" +checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" dependencies = [ - "crossbeam-deque", "either", "rayon-core", ] @@ -2782,18 +2779,18 @@ checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4" [[package]] name = "serde" -version = "1.0.149" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256b9932320c590e707b94576e3cc1f7c9024d0ee6612dfbcf1cb106cbe8e055" +checksum = "e326c9ec8042f1b5da33252c8a37e9ffbd2c9bef0155215b6e6c80c790e05f91" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.149" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4eae9b04cbffdfd550eb462ed33bc6a1b68c935127d008b27444d08380f94e4" +checksum = "42a3df25b0713732468deadad63ab9da1f1fd75a48a15024b50363f128db627e" dependencies = [ "proc-macro2", "quote", diff --git a/shotover-proxy/Cargo.toml b/shotover-proxy/Cargo.toml index f1e4ad3ed..129d68b76 100644 --- a/shotover-proxy/Cargo.toml +++ b/shotover-proxy/Cargo.toml @@ -64,7 +64,7 @@ halfbrown = "0.1.11" # Transform dependencies redis-protocol = { version = "4.0.1", features = ["decode-mut"] } -cassandra-protocol = { git = "https://github.com/conorbros/cdrs-tokio", branch = "8.0-dev" } +cassandra-protocol = { git = "https://github.com/krojew/cdrs-tokio", branch = "8.0-dev" } crc16 = "0.4.0" ordered-float = { version = "3.0.0", features = ["serde"] } @@ -91,7 +91,7 @@ hex-literal = "0.3.3" nix = "0.26.0" reqwest = "0.11.6" metrics-util = "0.14.0" -cdrs-tokio = { git = "https://github.com/conorbros/cdrs-tokio", branch = "8.0-dev" } +cdrs-tokio = { git = "https://github.com/krojew/cdrs-tokio", branch = "8.0-dev" } scylla = { git = "https://github.com/scylladb/scylla-rust-driver", features = ["ssl"] } rstest = "0.16.0" diff --git a/shotover-proxy/tests/cassandra_int_tests/routing.rs b/shotover-proxy/tests/cassandra_int_tests/routing.rs index a00957932..afe43c61c 100644 --- a/shotover-proxy/tests/cassandra_int_tests/routing.rs +++ b/shotover-proxy/tests/cassandra_int_tests/routing.rs @@ -354,7 +354,7 @@ mod composite_key { let name: String = "0FjhKM4rJQJaniCNHEkKlelmUsYIBJJ9IZuBh44WJTrcPrez".into(); - let _ = connection + connection .execute_prepared( &range, &[ @@ -365,7 +365,7 @@ mod composite_key { .await .unwrap(); - let _ = connection + connection .execute_prepared( &simple2, &[ @@ -376,7 +376,7 @@ mod composite_key { .await .unwrap(); - let _ = connection + connection .execute_prepared( &simple1, &[ResultValue::Varchar(name), ResultValue::Boolean(true)],