Skip to content

Commit

Permalink
chore: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed May 14, 2024
1 parent fd8caec commit fae410f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/flow/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl FlownodeManager {
(zelf, worker)
}

/// add a worker handler to manager, meaning this corrseponding worker is under it's manage
/// add a worker handler to manager, meaning this corresponding worker is under it's manage
pub fn add_worker_handle(&mut self, handle: WorkerHandle) {
self.worker_handles.push(Mutex::new(handle));
}
Expand Down
8 changes: 4 additions & 4 deletions src/flow/src/adapter/node_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl SourceSender {
Ok(row_cnt)
}

/// return number of rows it actuall send(including what's in the buffer)
/// return number of rows it actual send(including what's in the buffer)
pub fn send_rows(&mut self, rows: Vec<DiffRow>) -> Result<usize, Error> {
self.send_buf.extend(rows);

Expand All @@ -128,7 +128,7 @@ impl SourceSender {
}

impl FlownodeContext {
/// return number of rows it actuall send(including what's in the buffer)
/// return number of rows it actual send(including what's in the buffer)
///
/// TODO(discord9): make this concurrent
pub fn send(&mut self, table_id: TableId, rows: Vec<DiffRow>) -> Result<usize, Error> {
Expand All @@ -154,7 +154,7 @@ impl FlownodeContext {
impl FlownodeContext {
/// mapping source table to task, and sink table to task in worker context
///
/// also add their corrseponding broadcast sender/receiver
/// also add their corresponding broadcast sender/receiver
pub fn register_task_src_sink(
&mut self,
task_id: FlowId,
Expand Down Expand Up @@ -253,7 +253,7 @@ impl FlownodeContext {
///
/// and will try to fetch the schema from table info manager(if table exist now)
///
/// NOTE: this will not actually render the table into collection refered as GlobalId
/// NOTE: this will not actually render the table into collection referred as GlobalId
/// merely creating a mapping from table id to global id
pub async fn assign_global_id_to_table(
&mut self,
Expand Down
2 changes: 1 addition & 1 deletion src/flow/src/adapter/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use snafu::ResultExt;

use crate::adapter::error::{Error, ExternalSnafu};

/// convert `ColumnSchema` lists to it's corrsponding proto type
/// convert `ColumnSchema` lists to it's corresponding proto type
pub fn column_schemas_to_proto(
column_schemas: Vec<ColumnSchema>,
primary_keys: &[String],
Expand Down

0 comments on commit fae410f

Please sign in to comment.