From 079de6fdf7b70fb196f7a3b87351884fc1591d84 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 27 Oct 2023 10:56:24 +0200 Subject: [PATCH] Rename last async_iife --- crates/db2/src/db2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/db2/src/db2.rs b/crates/db2/src/db2.rs index d2746ce67e..e2e1ae9eaa 100644 --- a/crates/db2/src/db2.rs +++ b/crates/db2/src/db2.rs @@ -20,7 +20,7 @@ use std::future::Future; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicBool, Ordering}; use util::channel::ReleaseChannel; -use util::{async_iife, ResultExt}; +use util::{async_maybe, ResultExt}; const CONNECTION_INITIALIZE_QUERY: &'static str = sql!( PRAGMA foreign_keys=TRUE; @@ -57,7 +57,7 @@ pub async fn open_db( let release_channel_name = release_channel.dev_name(); let main_db_dir = db_dir.join(Path::new(&format!("0-{}", release_channel_name))); - let connection = async_iife!({ + let connection = async_maybe!({ smol::fs::create_dir_all(&main_db_dir) .await .context("Could not create db directory")