Skip to content

Commit 652cf4b

Browse files
committed
fix Redis
1 parent 250ca22 commit 652cf4b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sentry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tokio = "0.2.0-alpha.6"
1919
hyper = {version = "=0.13.0-alpha.4", features = ["unstable-stream"]}
2020
regex = "1"
2121
# Database
22-
redis = {version = "0.13.1-alpha.0"}
22+
redis = {version = "0.13.1-alpha.0", features = ["tokio-executor"]}
2323
bb8 = {git = "https://github.com/djc/bb8", branch = "async-await"}
2424
bb8-postgres = {git = "https://github.com/djc/bb8", branch = "async-await"}
2525
# Logger

sentry/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ lazy_static! {
1010

1111
pub async fn redis_connection() -> Result<MultiplexedConnection, RedisError> {
1212
let client = redis::Client::open(REDIS_URL.as_str()).expect("Wrong redis connection string");
13-
client.get_multiplexed_async_connection().await
13+
client.get_multiplexed_tokio_connection().await
1414
}

0 commit comments

Comments
 (0)