From 66fe92dac169ab1a87a42f3d2c6acce3ee272ab5 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Thu, 23 May 2024 15:46:08 -0700 Subject: [PATCH] fix typos Co-authored-by: Sean Klein --- nexus/db-queries/src/db/datastore/vmm.rs | 2 +- nexus/src/app/background/abandoned_vmm_reaper.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nexus/db-queries/src/db/datastore/vmm.rs b/nexus/db-queries/src/db/datastore/vmm.rs index 932dba1931..d25815731d 100644 --- a/nexus/db-queries/src/db/datastore/vmm.rs +++ b/nexus/db-queries/src/db/datastore/vmm.rs @@ -179,7 +179,7 @@ impl DataStore { /// A VMM is considered "abandoned" if (and only if): /// /// - It is in the `Destroyed` state. - /// - It has previously been asigned to an instance. + /// - It has previously been assigned to an instance. /// - It is not currently running the instance, and it is also not the /// migration target of that instance (i.e. it is no longer pointed to by /// the instance record's `active_propolis_id` and `target_propolis_id` diff --git a/nexus/src/app/background/abandoned_vmm_reaper.rs b/nexus/src/app/background/abandoned_vmm_reaper.rs index ff960b0924..2ab3a83da7 100644 --- a/nexus/src/app/background/abandoned_vmm_reaper.rs +++ b/nexus/src/app/background/abandoned_vmm_reaper.rs @@ -7,7 +7,7 @@ //! A VMM is considered "abandoned" if (and only if): //! //! - It is in the `Destroyed` state. -//! - It has previously been asigned to an instance. +//! - It has previously been assigned to an instance. //! - It is not currently running the instance, and it is also not the //! migration target of that instance (i.e. it is no longer pointed to by //! the instance record's `active_propolis_id` and `target_propolis_id` @@ -25,7 +25,7 @@ use nexus_db_queries::db::DataStore; use std::num::NonZeroU32; use std::sync::Arc; -/// Background task that searches for abandoned VMM recordss and deletes them. +/// Background task that searches for abandoned VMM records and deletes them. pub struct AbandonedVmmReaper { datastore: Arc, }