cargo spellcheck (#3067)

This commit is contained in:
Bernhard Schuster
2021-05-22 02:15:47 +02:00
committed by GitHub
parent 9b06a38bb6
commit e8652e73db
34 changed files with 69 additions and 69 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ impl Artifacts {
.is_none());
}
/// Remove and retrive the artifacts from the table that are older than the supplied Time-To-Live.
/// Remove and retrieve the artifacts from the table that are older than the supplied Time-To-Live.
pub fn prune(&mut self, artifact_ttl: Duration) -> Vec<ArtifactId> {
let now = SystemTime::now();
+5 -5
View File
@@ -52,8 +52,8 @@ impl ValidationHost {
/// Execute PVF with the given code, params and priority. The result of execution will be sent
/// to the provided result sender.
///
/// This is async to accomodate the fact a possibility of back-pressure. In vast majority of
/// situations this function should return immediatelly.
/// This is async to accommodate the fact a possibility of back-pressure. In the vast majority of
/// situations this function should return immediately.
///
/// Returns an error if the request cannot be sent to the validation host, i.e. if it shut down.
pub async fn execute_pvf(
@@ -76,8 +76,8 @@ impl ValidationHost {
/// Sends a signal to the validation host requesting to prepare a list of the given PVFs.
///
/// This is async to accomodate the fact a possibility of back-pressure. In vast majority of
/// situations this function should return immediatelly.
/// This is async to accommodate the fact a possibility of back-pressure. In the vast majority of
/// situations this function should return immediately.
///
/// Returns an error if the request cannot be sent to the validation host, i.e. if it shut down.
pub async fn heads_up(&mut self, active_pvfs: Vec<Pvf>) -> Result<(), String> {
@@ -219,7 +219,7 @@ struct PendingExecutionRequest {
result_tx: ResultSender,
}
/// A mapping from an artifact ID which is in preparation state to the list of pending exeuction
/// A mapping from an artifact ID which is in preparation state to the list of pending execution
/// requests that should be executed once the artifact's prepration is finished.
#[derive(Default)]
struct AwaitingPrepare(HashMap<ArtifactId, Vec<PendingExecutionRequest>>);