Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Apr 26, 2024
1 parent 66c88b4 commit 54a99c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 6 additions & 4 deletions nexus/analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ impl StatementAnalyzer for PeerDDLAnalyzer {
} => {
match create_mirror {
CDC(cdc) => {
let flow_job_table_mappings = cdc.mapping_options.iter().map(|table_mapping|
FlowJobTableMapping {
let flow_job_table_mappings = cdc
.mapping_options
.iter()
.map(|table_mapping| FlowJobTableMapping {
source_table_identifier: table_mapping.source.to_string(),
destination_table_identifier: table_mapping.destination.to_string(),
partition_key: table_mapping
Expand All @@ -177,8 +179,8 @@ impl StatementAnalyzer for PeerDDLAnalyzer {
.as_ref()
.map(|ss| ss.iter().map(|s| s.value.clone()).collect())
.unwrap_or_default(),
}
).collect::<Vec<_>>();
})
.collect::<Vec<_>>();

// get do_initial_copy from with_options
let mut raw_options = HashMap::with_capacity(cdc.with_options.len());
Expand Down
7 changes: 5 additions & 2 deletions nexus/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ impl NexusBackend {
flow_handler.as_ref()
} else {
return Ok(());
}.lock().await;
}
.lock()
.await;

let validate_request = pt::peerdb_route::ValidatePeerRequest {
peer: Some(Peer {
Expand Down Expand Up @@ -779,7 +781,8 @@ impl NexusBackend {
}

NexusStatement::Rollback { stmt } => {
self.execute_statement(self.catalog.as_ref(), &stmt, None).await
self.execute_statement(self.catalog.as_ref(), &stmt, None)
.await
}

NexusStatement::Empty => Ok(vec![Response::EmptyQuery]),
Expand Down

0 comments on commit 54a99c9

Please sign in to comment.