This commit is contained in:
asonix 2022-09-27 23:23:06 -05:00
parent dc4b482737
commit 656b0225af
2 changed files with 2 additions and 2 deletions

View File

@ -1151,7 +1151,7 @@ async fn main() -> color_eyre::Result<()> {
init_tracing(&CONFIG.tracing)?; init_tracing(&CONFIG.tracing)?;
let repo = Repo::open(CONFIG.repo.clone())?; let repo = Repo::open(CONFIG.repo.clone())?;
repo.from_db(CONFIG.old_db.path.clone()).await?; repo.migrate_from_db(CONFIG.old_db.path.clone()).await?;
match (*OPERATION).clone() { match (*OPERATION).clone() {
Operation::Run => (), Operation::Run => (),

View File

@ -462,7 +462,7 @@ impl Repo {
} }
} }
pub(crate) async fn from_db(&self, path: PathBuf) -> color_eyre::Result<()> { pub(crate) async fn migrate_from_db(&self, path: PathBuf) -> color_eyre::Result<()> {
if self.has_migrated().await? { if self.has_migrated().await? {
return Ok(()); return Ok(());
} }