Skip to content

Commit d44599f

Browse files
committed
fix: lint and cleanup
1 parent bc1aa6b commit d44599f

File tree

5 files changed

+1
-22
lines changed

5 files changed

+1
-22
lines changed

packages/cipherstash-proxy/src/postgresql/column_mapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl ColumnMapper {
2626
/// Maps typed statement projection columns to an Encrypt column configuration
2727
///
2828
/// The returned `Vec` is of `Option<Column>` because the Projection columns are a mix of native and EQL types.
29-
/// Only EQL colunms will have a configuration. Native types are always None.
29+
/// Only EQL columns will have a configuration. Native types are always None.
3030
///
3131
/// Preserves the ordering and semantics of the projection to reduce the complexity of positional encryption.
3232
pub fn get_projection_columns(

packages/cipherstash-proxy/src/postgresql/context/mod.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -516,21 +516,6 @@ where
516516

517517
pub async fn reload_schema(&self) {
518518
let (responder, receiver) = oneshot::channel();
519-
520-
// let _ = self
521-
// .reload_sender
522-
// .send(ReloadCommand::DatabaseSchema(responder))
523-
// .inspect_err(|err| {
524-
// // Error means a fatal internal error in send.
525-
// // No recovery really possible
526-
// // Log because may break subsequent statements and lead to confusion
527-
// error!(
528-
// target: CONTEXT,
529-
// msg = "Database schema could not be reloaded",
530-
// error = err.to_string()
531-
// )
532-
// });
533-
534519
match self
535520
.reload_sender
536521
.send(ReloadCommand::DatabaseSchema(responder))

packages/cipherstash-proxy/src/postgresql/context/statement.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ impl Statement {
2626
}
2727
}
2828

29-
pub fn unencryped() -> Statement {
30-
Statement::new(vec![], vec![], vec![], vec![])
31-
}
32-
3329
pub fn has_literals(&self) -> bool {
3430
!self.literal_columns.is_empty()
3531
}

packages/showcase/src/data.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use crate::{
88
};
99

1010
pub async fn insert_test_data() {
11-
println!("Insert test data");
1211
let medications = [
1312
Medication::new(
1413
"550e8400-e29b-41d4-a716-446655440001",

packages/showcase/src/schema.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ use crate::common::{reset_schema_to, PROXY};
33
const SCHEMA: &str = include_str!("./schema.sql");
44

55
pub async fn setup_schema() {
6-
println!("Setup schema");
76
reset_schema_to(SCHEMA, PROXY).await
87
}

0 commit comments

Comments
 (0)