Skip to content

Commit

Permalink
validate credentials for ingestors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable committed Jun 21, 2024
1 parent db4bf9f commit 25fece4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/src/handlers/http/modal/ingest_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ impl IngestServer {
Box::new(|file_name| file_name.starts_with("ingestor")),
)
.await?;

if !ingestor_metadata.len() > 0 {
if ingestor_metadata.len() > 0 {

Check failure on line 296 in server/src/handlers/http/modal/ingest_server.rs

View workflow job for this annotation

GitHub Actions / Cargo Clippy check

length comparison to zero
let ingestor_metadata_value: Value =
serde_json::from_slice(&ingestor_metadata[0]).expect("ingestor.json is valid json");
let check = ingestor_metadata_value
Expand Down

0 comments on commit 25fece4

Please sign in to comment.