Using PostgreSQL instead of Redis #1
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ pub struct GetProgress {
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let pg_url: String = env::var("POSTGRES")
|
||||
let pg_url: String = env::var("PG_URL")
|
||||
.ok()
|
||||
.and_then(|v| v.parse().ok())
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in a new issue