refactor: Replace Bach with Application on every naming (#292)

This commit is contained in:
Kartikeya Hegde
2023-01-10 18:07:32 +05:30
committed by GitHub
parent aaf7088afc
commit 3cdf50c942
36 changed files with 218 additions and 209 deletions

View File

@ -1,12 +1,12 @@
use router::{
configs::settings::{CmdLineConf, Settings, Subcommand},
core::errors::{BachError, BachResult},
core::errors::{ApplicationError, ApplicationResult},
logger,
};
use structopt::StructOpt;
#[actix_web::main]
async fn main() -> BachResult<()> {
async fn main() -> ApplicationResult<()> {
// get commandline config before initializing config
let cmd_line = CmdLineConf::from_args();
@ -41,7 +41,7 @@ async fn main() -> BachResult<()> {
state.store.close().await;
Err(BachError::from(std::io::Error::new(
Err(ApplicationError::from(std::io::Error::new(
std::io::ErrorKind::Other,
"Server shut down",
)))