From e6db82826fba2f5f884c4c14c272eb62a252cb28 Mon Sep 17 00:00:00 2001 From: smtmfft Date: Tue, 13 Aug 2024 13:54:51 +0800 Subject: [PATCH] add missing error return --- provers/risc0/driver/src/bonsai/auto_scaling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provers/risc0/driver/src/bonsai/auto_scaling.rs b/provers/risc0/driver/src/bonsai/auto_scaling.rs index c3c98af9c..3b6c8429f 100644 --- a/provers/risc0/driver/src/bonsai/auto_scaling.rs +++ b/provers/risc0/driver/src/bonsai/auto_scaling.rs @@ -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(()) } }