2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-10 06:25:00 +00:00
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(());
} }