Skip to content

Commit e45ef32

Browse files
datasecurity: move TODO
1 parent 704869b commit e45ef32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • pkg/collector/sharedlibrary/rustchecks/checks/datasecurity/src/backend

pkg/collector/sharedlibrary/rustchecks/checks/datasecurity/src/backend/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ pub struct ScannedColumn {
2020
#[derive(Debug, Default)]
2121
pub struct ScanData {
2222
/// Column-oriented values consumed by the scanner.
23+
// TODO(dsec-173): return an `Event` (dd-sensitive-data-scanner) per backend
24+
// instead of a `Value`, to avoid the intermediate JSON map and its copies.
2325
pub columns: Value,
2426
/// The scanned columns (name + source data type), in query order.
2527
pub scanned_columns: Vec<ScannedColumn>,
@@ -33,8 +35,6 @@ pub trait ScanEngine: Sync {
3335
/// Engine name, matched against the sub task platform.
3436
fn name(&self) -> &'static str;
3537
/// Runs the sub task's query and returns its columns and scan metadata.
36-
// TODO(dsec-173): return an `Event` (dd-sensitive-data-scanner) per backend
37-
// instead of a `Value`, to avoid the intermediate JSON map and its copies.
3838
fn fetch_data(&self, sub_task: &SubTask) -> Result<ScanData>;
3939
}
4040

0 commit comments

Comments
 (0)