set server listen address manually and return file locations in JSON on Config

This commit is contained in:
Lorenzo Tucci 2023-08-04 21:49:05 +02:00
parent dc8982731c
commit 41399ab015
3 changed files with 18 additions and 6 deletions

View file

@ -96,7 +96,7 @@ impl Context {
let _ = cli::tracing::init(debug, json, data_dir.join("logs"), None);
});
let init = Context {
let context = Context {
db: open_db(data_dir.join("sqlite")).await?,
bitcoin_wallet,
monero_wallet,
@ -116,7 +116,7 @@ impl Context {
running_swap: Arc::new(Mutex::new(false)),
};
Ok(init)
Ok(context)
}
}