sgx-daemon/src/config.rs

13 lines
276 B
Rust

#[derive(Debug)]
pub struct Config {
pub brain_url: String,
}
impl Default for Config {
fn default() -> Self {
let brain_url =
std::env::var("BRAIN_URL").unwrap_or_else(|_| "http://127.0.0.1:31337".to_string());
Self { brain_url }
}
}