Bootstrap configuration loading (#46)
This commit was merged in pull request #46.
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
//! arr — reconcile loop and process entry point. See DESIGN.md §8.
|
||||
|
||||
fn main() {
|
||||
println!("arr");
|
||||
mod config;
|
||||
|
||||
use std::process::ExitCode;
|
||||
|
||||
fn main() -> ExitCode {
|
||||
match config::Config::load() {
|
||||
Ok(config) => {
|
||||
println!("arr starting, bind_addr={}", config.bind_addr);
|
||||
ExitCode::SUCCESS
|
||||
}
|
||||
Err(err) => {
|
||||
eprintln!("arr: {err}");
|
||||
ExitCode::FAILURE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user