Skip to content

Commit

Permalink
Change: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Mar 1, 2024
1 parent 2842dcf commit 7692b23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rust/openvasd/src/scheduling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ pub enum Error {
NotFound,
/// Queue overseeds the configured maximal queue amount
QueueFull,
/// An error occured while using the Scanner
/// An error occurred while using the Scanner
Scan(ScanError),
/// An error occured while using the DB
/// An error occurred while using the DB
Storage(StorageError),
}

Expand All @@ -37,8 +37,8 @@ impl Display for Error {
Error::ScanAlreadyQueued => write!(f, "scan is already queued"),
Error::NotFound => write!(f, "scan was not found"),
Error::QueueFull => write!(f, "unable to queue scan: queue is already full."),
Error::Scan(e) => write!(f, "scan error occured: {}", e),
Error::Storage(e) => write!(f, "storage error occured: {}", e),
Error::Scan(e) => write!(f, "scan error occurred: {}", e),
Error::Storage(e) => write!(f, "storage error occurred: {}", e),
}
}
}
Expand Down Expand Up @@ -68,7 +68,7 @@ impl From<Error> for ScanError {
}
/// Scheduler is a core component of managing scans.
///
/// It follows the scanner traits of models so that a entry point does not have to differntiate
/// It follows the scanner traits of models so that a entry point does not have to differentiate
/// between a scanner or scheduler. It additionally provides methods to get running and queued
/// scans. This is necessary to prevent a feed update while a scan is running.
///
Expand Down Expand Up @@ -181,7 +181,7 @@ where
if let Some(min_free_memory) = self.config.min_free_mem {
let available_memory = sys.available_memory();
if available_memory < min_free_memory {
tracing::debug!(%min_free_memory, %available_memory, %scan_id, "insuffient memory to start scan.");
tracing::debug!(%min_free_memory, %available_memory, %scan_id, "insufficient memory to start scan.");
}
}
let (scan, status) = self.db.get_decrypted_scan(&scan_id).await?;
Expand Down

0 comments on commit 7692b23

Please sign in to comment.