Skip to content

Commit 8956e06

Browse files
authored
Merge branch 'main' into integration-tests/clp-ffi-js
2 parents 8eb916f + 45ce579 commit 8956e06

File tree

19 files changed

+1007
-766
lines changed

19 files changed

+1007
-766
lines changed

components/clp-rust-utils/src/job_config/ingestion.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ pub mod s3 {
2020
S3Scanner(S3ScannerConfig),
2121
}
2222

23+
impl S3IngestionJobConfig {
24+
#[must_use]
25+
pub const fn as_base_config(&self) -> &BaseConfig {
26+
match self {
27+
Self::SqsListener(config) => &config.base,
28+
Self::S3Scanner(config) => &config.base,
29+
}
30+
}
31+
}
32+
2333
/// Base configuration for ingesting logs from S3.
2434
#[derive(Clone, Debug, Serialize, Deserialize, ToSchema)]
2535
pub struct BaseConfig {

0 commit comments

Comments
 (0)