mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 12:05:42 +00:00
some spelling fixes (#4088)
* quotes around Job::ToJob * add new words to dictionary
This commit is contained in:
@@ -62,7 +62,7 @@ impl CollationGenerationSubsystem {
|
||||
/// Conceptually, this is very simple: it just loops forever.
|
||||
///
|
||||
/// - On incoming overseer messages, it starts or stops jobs as appropriate.
|
||||
/// - On other incoming messages, if they can be converted into Job::ToJob and
|
||||
/// - On other incoming messages, if they can be converted into `Job::ToJob` and
|
||||
/// include a hash, then they're forwarded to the appropriate individual job.
|
||||
/// - On outgoing messages from the jobs, it forwards them to the overseer.
|
||||
///
|
||||
|
||||
@@ -95,7 +95,7 @@ pub fn channel<T>(
|
||||
#[allow(missing_docs)]
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("Oneshot was cancelled.")]
|
||||
#[error("Oneshot was canceled.")]
|
||||
Canceled(#[source] Canceled, Measurements),
|
||||
#[error("Oneshot did not receive a response within {}", Duration::as_secs_f64(.0))]
|
||||
HardTimeout(Duration, Measurements),
|
||||
@@ -124,7 +124,7 @@ impl<T> MeteredSender<T> {
|
||||
inner.send((Instant::now(), t)).map_err(|(_, t)| t)
|
||||
}
|
||||
|
||||
/// Poll if the thing is already cancelled.
|
||||
/// Poll if the thing is already canceled.
|
||||
pub fn poll_canceled(&mut self, ctx: &mut Context<'_>) -> Poll<()> {
|
||||
self.inner.poll_canceled(ctx)
|
||||
}
|
||||
|
||||
@@ -638,7 +638,7 @@ struct JobSubsystemParams<Spawner, RunArgs, Metrics> {
|
||||
/// Conceptually, this is very simple: it just loops forever.
|
||||
///
|
||||
/// - On incoming overseer messages, it starts or stops jobs as appropriate.
|
||||
/// - On other incoming messages, if they can be converted into Job::ToJob and
|
||||
/// - On other incoming messages, if they can be converted into `Job::ToJob` and
|
||||
/// include a hash, then they're forwarded to the appropriate individual job.
|
||||
/// - On outgoing messages from the jobs, it forwards them to the overseer.
|
||||
pub struct JobSubsystem<Job: JobTrait, Spawner> {
|
||||
|
||||
Reference in New Issue
Block a user