Skip to content

Commit

Permalink
add missing error return
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft committed Aug 13, 2024
1 parent 77cce75 commit e6db828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provers/risc0/driver/src/bonsai/auto_scaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ impl BonsaiAutoScaler {
// Use the parsed data
debug!("Scaler status: {:?}", data);
assert_eq!(data.desired, gpu_num);
Ok(())
} else {
trace_err!("Request failed with status: {}", response.status());
Err(Error::msg("Failed to get bonsai gpu num".to_string()))
}

Ok(())
}
}

Expand Down

0 comments on commit e6db828

Please sign in to comment.