Skip to content

Commit

Permalink
Apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
karolisg committed Mar 28, 2024
1 parent 2659935 commit 6de3ac5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dozer-sink-aerospike/src/aerospike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl Client {
&self,
batch: *mut as_batch_records,
) -> Result<(), AerospikeError> {
info!("Batch get {} records", (*batch).list.size);
dbg!("Batch get {} records", (*batch).list.size);
as_try(|err| aerospike_batch_read(self.inner.as_ptr(), err, std::ptr::null(), batch))
}

Expand Down
4 changes: 2 additions & 2 deletions dozer-sink-aerospike/src/denorm_dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use dozer_core::petgraph::visit::{
EdgeRef, IntoEdgesDirected, IntoNeighborsDirected, IntoNodeReferences,
};
use dozer_types::indexmap::IndexMap;
use dozer_types::log::info;
use dozer_types::log::debug;
use dozer_types::models::sink::{AerospikeSet, AerospikeSinkTable};
use dozer_types::thiserror;
use dozer_types::types::{Field, Record, Schema, TableOperation};
Expand Down Expand Up @@ -499,7 +499,7 @@ impl DenormalizationState {
.sum();

let batch_size: u32 = batch_size_upper_bound.try_into().unwrap();
info!("Writing denorm batch of size {}", batch_size);
debug!(target: "aerospike_sink", "Writing denorm batch of size {}", batch_size);
let mut write_batch = RecordBatch::new(batch_size, batch_size);

for node in self.dag.node_weights_mut() {
Expand Down
4 changes: 2 additions & 2 deletions dozer-sink-aerospike/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub use crate::aerospike::Client;
use aerospike_client_sys::*;
use denorm_dag::DenormalizationState;
use dozer_core::event::EventHub;
use dozer_types::log::{error, info};
use dozer_types::log::{debug, error};
use dozer_types::models::connection::AerospikeConnection;
use dozer_types::node::OpIdentifier;
use dozer_types::thiserror;
Expand Down Expand Up @@ -440,7 +440,7 @@ impl AerospikeSinkWorker {
// Write denormed tables
let mut batch = RecordBatch::new(batch_size_est as u32, batch_size_est as u32);

info!("Sink batch size {batch_size_est}");
debug!(target: "aerospike_sink", "Sink batch size {batch_size_est}");
for table in denormalized_tables {
for (key, record) in table.records {
batch.add_write(
Expand Down

0 comments on commit 6de3ac5

Please sign in to comment.