Skip to content

Commit

Permalink
chore: fix read key from redis
Browse files Browse the repository at this point in the history
  • Loading branch information
BRAVO68WEB committed Sep 12, 2024
1 parent 2829019 commit 7425cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/http/src/controller/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn fetch_key(req: HttpRequest, info: web::Path<Retrievekey>, data: web::Da
});
}

let key: String = info.key.clone();
let key: String = format!("snowflake:id:{}", info.key.clone());
let mut redis_multiplex_connection: redis::aio::MultiplexedConnection = data.redis_client.get_multiplexed_async_connection().await.unwrap();

let value: String = get_value(&mut redis_multiplex_connection, &key).await;
Expand Down

0 comments on commit 7425cfc

Please sign in to comment.