Skip to content

Commit eceaea8

Browse files
authored
Propagate error when acquiring semaphore in ThrottledTensorZeroClient (tensorzero#2937)
1 parent 8cbf56d commit eceaea8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evaluations/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ impl ThrottledTensorZeroClient {
465465
}
466466

467467
async fn inference(&self, params: ClientInferenceParams) -> Result<InferenceOutput> {
468-
let _permit = self.semaphore.acquire().await;
468+
let _permit = self.semaphore.acquire().await?;
469469
let inference_output = self.client.inference(params).await?;
470470
Ok(inference_output)
471471
}

0 commit comments

Comments
 (0)