Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into INS-12991-auth-support
Browse files Browse the repository at this point in the history
  • Loading branch information
XA21X committed Aug 9, 2021
2 parents 8cd8301 + 87486c0 commit 9c38b84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ codegen-units = 1
[profile.bench]
lto = "fat"
codegen-units = 1

# Patches
[patch.crates-io]
cached = { git = "https://github.com/drwilco/cached", branch = "cloneless-result" }
17 changes: 4 additions & 13 deletions shotover-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ derivative = "2.1.1"
itertools = "0.9.0"
rand = { version = "0.7.3", features = ["small_rng", "std"]}
rand_distr = "0.2.2"
cached = "0.16.0"
cached = "0.24.0"
pin-project = "1.0.1"
pin-project-lite = "0.2"


# Error handling
thiserror = "1.0"
anyhow = "1.0.31"
Expand All @@ -44,15 +43,13 @@ metrics = "0.12.1"
metrics-core = "0.5.2"
metrics-runtime = "0.13.1"
tracing = { version = "0.1.15", features = ["release_max_level_info"]}
tracing-subscriber = { version="0.2.11", features = ["env-filter"]}
tracing-subscriber = { version = "0.2.11", features = ["env-filter"]}
tracing-futures = "0.2.4"
tracing-log = { version = "0.1.1", features = ["env_logger"] }
tracing-appender = "0.1.1"
hyper = { version = "0.14.2", features = ["server"] }
halfbrown = "0.1.11"



# Transform dependencies
#redis-protocol = { path = "/home/ben/git/redis-protocol.rs"}
redis-protocol = { git = "https://github.com/benbromhead/redis-protocol.rs", branch = "remove-parser" }
Expand All @@ -62,9 +59,6 @@ cassandra-proto = { git = "https://github.com/benbromhead/cassandra-proto", bran
rdkafka = { version = "0.24", features = ["cmake-build"] }
crc16 = { version = "0.4.0"}

#test deps
hex-literal = "0.2.1"

#lua
mlua = { version = "0.4.1", features = ["async","send", "vendored","lua53"] }
mlua_serde = { version = "0.5", features = ["lua53"] }
Expand All @@ -80,19 +74,16 @@ rusoto_signature = "0.46.0"

[dev-dependencies]
criterion = { version = "0.3", features = ["async_tokio", "html_reports"] }
lazy_static = "1.4.0"
ctrlc = "3.1.6"
redis = {git = "https://github.com/benbromhead/redis-rs", branch = "parra_support", features = ["tokio-rt-core", "cluster"]}
redis = { version = "0.21.0", features = ["tokio-comp", "cluster"] }
pcap = "0.7.0"
pktparse = {version = "0.4.0", features = ["derive"]}
dns-parser = "0.8"
tls-parser = "0.7"
hwaddr = "0.1.2"
httparse = "1.3.0"
threadpool = "1.0"
num_cpus = "1.0"
serial_test = "0.5.1"
test-helpers = { path = "../test-helpers" }
hex-literal = "0.2.1"

[[bench]]
name = "redis_benches"
Expand Down
5 changes: 2 additions & 3 deletions shotover-proxy/tests/redis_int_tests/basic_driver_tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![allow(clippy::let_unit_value)]

use std::collections::{BTreeMap, BTreeSet};
use std::collections::{HashMap, HashSet};
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};

use redis::{Commands, ErrorKind, RedisError, Value};
use serial_test::serial;
Expand Down Expand Up @@ -594,7 +593,7 @@ fn test_nice_list_api() {
assert_eq!(con.rpush("my_list", &[5, 6, 7, 8]), Ok(8));
assert_eq!(con.llen("my_list"), Ok(8));

assert_eq!(con.lpop("my_list"), Ok(1));
assert_eq!(con.lpop("my_list", None), Ok(1));
assert_eq!(con.llen("my_list"), Ok(7));

assert_eq!(con.lrange("my_list", 0, 2), Ok((2, 3, 4)));
Expand Down

0 comments on commit 9c38b84

Please sign in to comment.