Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
karolisg committed Mar 6, 2024
1 parent 1e945ed commit 570dd9a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dozer-ingestion/aerospike/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,15 @@ impl AerospikeConnector {

Ok(HttpServer::new(move || {
App::new()
.app_data(web::JsonConfig::default().error_handler(|err, _req| {
actix_web::error::InternalError::from_response(
"",
HttpResponse::BadRequest()
.content_type("application/json")
.body(format!(r#"{{"error":"{}"}}"#, err)),
)
.into()
}))
.app_data(web::Data::new(server_state.clone()))
.service(healthcheck)
.service(healthcheck_batch)
Expand Down
2 changes: 2 additions & 0 deletions dozer-sink-oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ enum OpKind {
impl OracleSink {
fn exec_batch(&mut self) -> oracle::Result<()> {
debug!("Executing batch of size {}", self.batch_params.len());
let started = std::time::Instant::now();
let mut batch = self
.conn
.batch(&self.merge_statement, self.batch_params.len())
Expand All @@ -587,6 +588,7 @@ impl OracleSink {
batch.append_row(&[])?;
}
batch.execute()?;
info!("Execution took {:?}", started.elapsed());
Ok(())
}

Expand Down

0 comments on commit 570dd9a

Please sign in to comment.