diff --git a/src/diff.rs b/src/diff.rs index 5f11f11..b940315 100644 --- a/src/diff.rs +++ b/src/diff.rs @@ -64,26 +64,24 @@ pub fn write_paths_diffln( ) -> Result { let mut connection = store::connect()?; - let paths_old = - connection.query_depdendents(path_old).with_context(|| { - format!( - "failed to query dependencies of path '{path}'", - path = path_old.display() - ) - })?; + let paths_old = connection.query_dependents(path_old).with_context(|| { + format!( + "failed to query dependencies of path '{path}'", + path = path_old.display() + ) + })?; log::info!( "found {count} packages in old closure", count = paths_old.len(), ); - let paths_new = - connection.query_depdendents(path_new).with_context(|| { - format!( - "failed to query dependencies of path '{path}'", - path = path_new.display() - ) - })?; + let paths_new = connection.query_dependents(path_new).with_context(|| { + format!( + "failed to query dependencies of path '{path}'", + path = path_new.display() + ) + })?; log::info!( "found {count} packages in new closure", count = paths_new.len(), diff --git a/src/store.rs b/src/store.rs index 9aedde3..51baaf0 100644 --- a/src/store.rs +++ b/src/store.rs @@ -44,7 +44,7 @@ pub fn connect() -> Result { // // We read a large part of the DB anyways in each query, // so it makes sense to set aside a large region of memory-mapped - // I/O prevent incuring page faults which can be done using + // I/O prevent incurring page faults which can be done using // `mmap_size`. // // This made a performance difference of about 500ms (but only @@ -94,7 +94,7 @@ fn path_to_canonical_string(path: &Path) -> Result { impl Connection { /// Gets the total closure size of the given store path by summing up the nar - /// size of all depdendent derivations. + /// size of all dependent derivations. pub fn query_closure_size(&mut self, path: &Path) -> Result { const QUERY: &str = " WITH RECURSIVE @@ -120,7 +120,7 @@ impl Connection { } /// Gathers all derivations that the given profile path depends on. - pub fn query_depdendents( + pub fn query_dependents( &mut self, path: &Path, ) -> Result> {