Skip to content

Commit

Permalink
moss/registry/transaction: Remove unused database
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <ikey@serpentos.com>
  • Loading branch information
ikeycode committed Sep 26, 2023
1 parent 994109d commit 72b189e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions moss/src/registry/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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<package::Id>,
}
Expand All @@ -49,7 +46,6 @@ pub(super) fn new(registry: &Registry) -> Result<Transaction<'_>, Error> {
Ok(Transaction {
id: None,
registry,
db: block_on(Database::new("sqlite::memory:", false))?,
packages: HashSet::new(),
})
}
Expand Down

0 comments on commit 72b189e

Please sign in to comment.