Skip to content

Commit 77c157e

Browse files
feat: support included_patterns and excluded_patterns for google source
1 parent c0f452e commit 77c157e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ops/sources/google_drive.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use hyper_rustls::HttpsConnector;
99
use hyper_util::client::legacy::connect::HttpConnector;
1010
use phf::phf_map;
1111

12+
use super::shared::pattern_matcher::PatternMatcher;
1213
use crate::base::field_attrs;
1314
use crate::ops::sdk::*;
14-
use super::shared::pattern_matcher::PatternMatcher;
1515

1616
struct ExportMimeType {
1717
text: &'static str,
@@ -128,14 +128,16 @@ impl Executor {
128128
let (id, mime_type, name) = match (file.id, file.mime_type, file.name) {
129129
(Some(id), Some(mime_type), Some(name)) => (Arc::<str>::from(id), mime_type, name),
130130
(id, mime_type, name) => {
131-
warn!("Skipping file with incomplete metadata: id={id:?}, mime_type={mime_type:?}, name={name:?}",);
131+
warn!(
132+
"Skipping file with incomplete metadata: id={id:?}, mime_type={mime_type:?}, name={name:?}"
133+
);
132134
return Ok(None);
133135
}
134136
};
135137
if !seen_ids.insert(id.clone()) {
136138
return Ok(None);
137139
}
138-
if self.pattern_matcher.is_file_included(&name){
140+
if self.pattern_matcher.is_file_included(&name) {
139141
return Ok(None);
140142
}
141143
if !self.pattern_matcher.is_excluded(&name) {

0 commit comments

Comments
 (0)