Skip to content

Commit

Permalink
chore: typo successful (#4238)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev authored Nov 12, 2024
1 parent 4734e0c commit 5f101f2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion crates/fluvio-connector-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub async fn ensure_topic_exists(config: &config::ConnectorConfig) -> Result<()>
)
.await
{
Ok(_) => info!(topic, "succesfully created"),
Ok(_) => info!(topic, "successfully created"),
Err(err) => {
error!("unable to create topic {topic}: {err}");
return Err(err);
Expand Down
8 changes: 4 additions & 4 deletions crates/fluvio-controlplane-metadata/src/mirror/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub enum MirrorPairStatus {
#[fluvio(tag = 0)]
Waiting,
#[fluvio(tag = 1)]
Succesful,
Successful,
#[fluvio(tag = 2)]
Failed,
#[fluvio(tag = 3)]
Expand Down Expand Up @@ -129,7 +129,7 @@ impl std::fmt::Display for MirrorStatus {
impl std::fmt::Display for MirrorPairStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let status = match self {
MirrorPairStatus::Succesful => "Connected",
MirrorPairStatus::Successful => "Connected",
MirrorPairStatus::Disabled => "Disabled",
MirrorPairStatus::Failed => "Failed",
MirrorPairStatus::Waiting => "Waiting",
Expand Down Expand Up @@ -159,7 +159,7 @@ mod test {
#[test]
fn test_last_seen() {
let status = MirrorStatus {
pairing_sc: MirrorPairStatus::Succesful,
pairing_sc: MirrorPairStatus::Successful,
pairing_spu: MirrorPairStatus::Waiting,
connection_status: ConnectionStatus::Online,
connection_stat: ConnectionStat {
Expand All @@ -172,7 +172,7 @@ mod test {
assert_eq!(last_seen, "5s");

let default_status = MirrorStatus {
pairing_sc: MirrorPairStatus::Succesful,
pairing_sc: MirrorPairStatus::Successful,
pairing_spu: MirrorPairStatus::Waiting,
connection_status: ConnectionStatus::Online,
connection_stat: ConnectionStat { last_seen: 0 },
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-sc/src/controllers/mirroring/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl<C: MetadataItem> RemoteMirrorController<C> {
}

info!("synced topics from home");
self.update_status(MirrorPairStatus::Succesful).await?;
self.update_status(MirrorPairStatus::Successful).await?;
backoff.reset();
}
Err(err) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl<AC: AuthContext, C: MetadataItem> RemoteFetchingFromHomeController<AC, C> {
}

// update status
self.update_status(MirrorPairStatus::Succesful, status)
self.update_status(MirrorPairStatus::Successful, status)
.await?;

return Ok(());
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-spu/src/mirroring/home/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl MirrorHomeHandler {
// create timer
let mut timer = sleep(Duration::from_secs(MIRROR_RECONCILIATION_INTERVAL_SEC));

self.update_status(MirrorPairStatus::Succesful).await?;
self.update_status(MirrorPairStatus::Successful).await?;

loop {
debug!(
Expand Down
6 changes: 3 additions & 3 deletions crates/fluvio-spu/src/mirroring/remote/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ where
if home_updated_needed && home_leo >= 0 {
self.update_remote_as_source(&mut home_sink, home_leo)
.await?;
self.update_status(MirrorPairStatus::Succesful).await?;
self.update_status(MirrorPairStatus::Successful).await?;
home_updated_needed = false;
}

Expand All @@ -278,7 +278,7 @@ where
return Err(anyhow!("received sync record request from home, this should not happen, since we are source"));
}
}
self.update_status(MirrorPairStatus::Succesful).await?;
self.update_status(MirrorPairStatus::Successful).await?;
backoff.reset();
} else {
warn!("spu socket to home has terminated");
Expand Down Expand Up @@ -349,7 +349,7 @@ where
HomeMirrorRequest::SyncRecords(sync_request)=> {
if(!paired) {
info!("sync received for the first time, indicating paired");
self.update_status(MirrorPairStatus::Succesful).await?;
self.update_status(MirrorPairStatus::Successful).await?;
paired = true;
}

Expand Down
8 changes: 4 additions & 4 deletions tests/cli/cdk_smoke_tests/cdk-multi-partition-consumer.bats
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ EOF
assert_success
assert_output --partial "Connector runs with process id"

wait_for_line_in_file "succesfully created" $LOG_PATH 30
wait_for_line_in_file "successfully created" $LOG_PATH 30
wait_for_line_in_file "monitoring started" $LOG_PATH 30

echo 1:1 | "$FLUVIO_BIN" produce $TOPIC_NAME --key-separator ":"
Expand Down Expand Up @@ -106,7 +106,7 @@ EOF
assert_success
assert_output --partial "Connector runs with process id"

wait_for_line_in_file "succesfully created" $LOG_PATH 30
wait_for_line_in_file "successfully created" $LOG_PATH 30
wait_for_line_in_file "monitoring started" $LOG_PATH 30

echo 1:1 | "$FLUVIO_BIN" produce $TOPIC_NAME --key-separator ":"
Expand Down Expand Up @@ -157,7 +157,7 @@ EOF
assert_success
assert_output --partial "Connector runs with process id"

wait_for_line_in_file "succesfully created" $LOG_PATH 30
wait_for_line_in_file "successfully created" $LOG_PATH 30
wait_for_line_in_file "monitoring started" $LOG_PATH 30

echo 3:3 | "$FLUVIO_BIN" produce $TOPIC_NAME --key-separator ":"
Expand Down Expand Up @@ -229,7 +229,7 @@ EOF
assert_success
assert_output --partial "Connector runs with process id"

wait_for_line_in_file "succesfully created" $LOG_PATH 30
wait_for_line_in_file "successfully created" $LOG_PATH 30
wait_for_line_in_file "monitoring started" $LOG_PATH 30

echo 1:1 | "$FLUVIO_BIN" produce $TOPIC_NAME --key-separator ":"
Expand Down

0 comments on commit 5f101f2

Please sign in to comment.