From 72b189e700a51e12902e2227472e746f422517d4 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Tue, 26 Sep 2023 13:04:41 +0100 Subject: [PATCH] moss/registry/transaction: Remove unused database Signed-off-by: Ikey Doherty --- moss/src/registry/transaction.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/moss/src/registry/transaction.rs b/moss/src/registry/transaction.rs index 5d70fe86..0f4e41da 100644 --- a/moss/src/registry/transaction.rs +++ b/moss/src/registry/transaction.rs @@ -5,12 +5,12 @@ use std::collections::HashSet; use dag::{toposort, DiGraph}; -use futures::{executor::block_on, StreamExt, TryFutureExt}; +use futures::{StreamExt, TryFutureExt}; use itertools::Itertools; use serde::{Deserialize, Serialize}; use thiserror::Error; -use crate::{db::meta::Database, package, Package, Provider, Registry}; +use crate::{package, Package, Provider, Registry}; #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct Id(u64); @@ -35,9 +35,6 @@ pub struct Transaction<'a> { // Bound to a registry registry: &'a Registry, - /// Memory bound database for resolution - db: Database, - // unique set of package ids packages: HashSet, } @@ -49,7 +46,6 @@ pub(super) fn new(registry: &Registry) -> Result, Error> { Ok(Transaction { id: None, registry, - db: block_on(Database::new("sqlite::memory:", false))?, packages: HashSet::new(), }) }