We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e1e23 commit a7d5a3bCopy full SHA for a7d5a3b
src/sidekiq/mod.rs
@@ -36,8 +36,7 @@ pub fn create_redis_pool() -> Result<ConnectionManager, ClientError> {
36
}
37
38
pub async fn create_async_redis_pool() -> Result<ConnectionManager, ClientError> {
39
- let redis_url =
40
- &env::var(&REDIS_URL_ENV.to_owned()).unwrap_or_else(|_| REDIS_URL_DEFAULT.to_owned());
+ let redis_url = &env::var(REDIS_URL_ENV).unwrap_or_else(|_| REDIS_URL_DEFAULT.to_owned());
41
// Note: this connection is multiplexed. Users of this object will call clone(), but the same underlying connection will be used.
42
// https://docs.rs/redis/latest/redis/aio/struct.ConnectionManager.html
43
match ConnectionManager::new(redis::Client::open((*redis_url).clone()).unwrap()).await {
0 commit comments