Skip to content

Commit

Permalink
fix(auth_rust): acquire redis connection string from environment vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
aldy505 committed Apr 11, 2024
1 parent d8e3aff commit 4cd2125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.build()
.unwrap()
.block_on(async {
let redis_client = Client::open("redis://@localhost:6379").unwrap();
let redis_client = Client::open(env::var("REDIS_URL").unwrap_or("redis://@localhost:6379".to_string())).unwrap();
let redis_async_connection = redis_client.get_multiplexed_async_connection().await.unwrap();
let auth_repo = AuthRepo::new(redis_async_connection);

Expand Down

0 comments on commit 4cd2125

Please sign in to comment.