cleanup Config::load()
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
2a59a56eaa
commit
f67cfcd535
2 changed files with 18 additions and 26 deletions
|
@ -24,7 +24,7 @@ pub(crate) struct Server {
|
|||
|
||||
impl Server {
|
||||
pub(crate) fn build(args: &Args, runtime: Option<&runtime::Handle>) -> Result<Arc<Self>, Error> {
|
||||
let raw_config = Config::load(&args.config)?;
|
||||
let raw_config = Config::load(args.config.as_deref())?;
|
||||
let raw_config = crate::clap::update(raw_config, args)?;
|
||||
let config = Config::new(&raw_config)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue