fix: trim api_addr
This commit is contained in:
parent
4675329334
commit
757c35e20f
@ -53,7 +53,7 @@ impl Env {
|
||||
|
||||
let api_addr = get("API_ADDR")?.unwrap_or("127.0.0.1:4444".into());
|
||||
|
||||
let api = Api { addr: api_addr.parse()
|
||||
let api = Api { addr: api_addr.trim().parse()
|
||||
.map_err(|e| Error::VarNotSocketAddr("API_ADDR".into(), e))? };
|
||||
|
||||
Ok(Env { postgres, api })
|
||||
|
Loading…
Reference in New Issue
Block a user