pub async fn run_db_operation<Fut, E, E1, T>(
info: &str,
operation: Fut,
error_map: E,
) -> Result<T, Error>
Expand description
Run a database operation and log slow operations, it also converts and logs any error with a given info for more context