Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
isankadn committed Aug 5, 2024
1 parent 7af6f65 commit ca246c5
Show file tree
Hide file tree
Showing 2 changed files with 453 additions and 240 deletions.
5 changes: 3 additions & 2 deletions historical_data/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// historical_data/src/main.rs
use anyhow::{anyhow, Context, Result};
use clickhouse_rs::Pool as ClickhousePool;
use futures::stream::StreamExt;
Expand Down Expand Up @@ -376,7 +377,7 @@ fn anonymize_statement(

// If we've made it this far without errors, update the original statement
*statement = statement_copy;
println!("Anonymized statement: {:?}", statement);
// println!("Anonymized statement: {:?}", statement);
Ok(())
}

Expand Down Expand Up @@ -414,7 +415,7 @@ async fn insert_into_clickhouse(
clickhouse_table: &str,
pg_pool: &PgPool,
tenant_name: &str,
batch_manager: &mut BatchSizeManager, // Added BatchSizeManager as mutable reference
batch_manager: &mut BatchSizeManager,
) -> Result<()> {
let full_table_name = format!("{}.{}", clickhouse_db, clickhouse_table);

Expand Down
Loading

0 comments on commit ca246c5

Please sign in to comment.