Skip to content

Commit

Permalink
validation: fix comment typo and re-use inferred schema variable
Browse files Browse the repository at this point in the history
  • Loading branch information
psFried committed Oct 16, 2023
1 parent d1b2632 commit eefae1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/validation/src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ fn walk_collection(
let read_bundle = models::Schema::extend_read_bundle(
read_bundle,
write_bundle,
inferred_schemas
.get(&collection.collection)
.map(|v| &v.schema),
inferred_schema.map(|v| &v.schema),
);

let read_schema =
Expand Down
2 changes: 1 addition & 1 deletion crates/validation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub async fn validate(
scope: url::Url::parse("flow://control-plane").unwrap(),
spec,
validated: None,
// Note that we don't currently fetch the infeered schema md5 for remote collections,
// Note that we don't currently fetch the infered schema md5 for remote collections,
// so they won't appear in the build ouptut for these collections.
inferred_schema_md5: None,
}
Expand Down

0 comments on commit eefae1b

Please sign in to comment.