1cbyc commented on code in PR #2608:
URL: 
https://github.com/apache/datafusion-ballista/pull/2608#discussion_r4432018635


##########
ballista/core/src/client.rs:
##########
@@ -62,6 +64,45 @@ pub struct BallistaClient {
 }
 
 impl BallistaClient {
+    fn encode_action(action: &Action) -> BResult<Vec<u8>> {
+        let serialized_action: protobuf::Action = 
action.to_owned().try_into()?;
+        let mut buf = Vec::with_capacity(serialized_action.encoded_len());
+        serialized_action
+            .encode(&mut buf)
+            .map_err(|e| BallistaError::GrpcActionError(format!("{e:?}")))?;
+        Ok(buf)
+    }
+
+    async fn retry_io<T, F, Fut>(&self, mut op: F) -> Result<T, Status>
+    where
+        F: FnMut(FlightServiceClient<Channel>) -> Fut,
+        Fut: Future<Output = Result<T, Status>>,
+    {
+        let attempts = self.io_retries_times.max(1);

Review Comment:
   Done that already. `retry_budget()` now documents both ways zero can appear: 
an explicit zero and the current `u16` to `u8` config conversion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to