parent
91db5861c8
commit
8d19873738
2 changed files with 14 additions and 6 deletions
|
|
@ -15,7 +15,6 @@ pub struct Config {
|
|||
pub agent_max_turns: u32,
|
||||
pub agent_max_duration_secs: u64,
|
||||
pub vapid_private_key: String,
|
||||
pub vapid_public_key: String,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
|
@ -58,8 +57,6 @@ impl Config {
|
|||
|
||||
let vapid_private_key = env::var("VAPID_PRIVATE_KEY")
|
||||
.map_err(|_| AppError::Config("VAPID_PRIVATE_KEY must be set".into()))?;
|
||||
let vapid_public_key = env::var("VAPID_PUBLIC_KEY")
|
||||
.map_err(|_| AppError::Config("VAPID_PUBLIC_KEY must be set".into()))?;
|
||||
|
||||
Ok(Config {
|
||||
database_url,
|
||||
|
|
@ -74,7 +71,6 @@ impl Config {
|
|||
agent_max_turns,
|
||||
agent_max_duration_secs,
|
||||
vapid_private_key,
|
||||
vapid_public_key,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue