kszucs commented on code in PR #7185:
URL: https://github.com/apache/opendal/pull/7185#discussion_r2836547428


##########
core/services/hf/src/backend.rs:
##########
@@ -118,27 +120,40 @@ impl HfBuilder {
         }
         self
     }
+
+    /// Enable XET storage protocol for reads.
+    ///
+    /// When the `xet` feature is compiled in, reads will check for
+    /// XET-backed files and use the XET protocol for downloading.
+    /// Default is disabled.
+    pub fn enable_xet(mut self) -> Self {
+        self.config.xet = true;
+        self
+    }
+
+    /// Disable XET storage protocol for reads.
+    pub fn disable_xet(mut self) -> Self {
+        self.config.xet = false;
+        self
+    }
+
+    /// Set the maximum number of retries for commit operations.
+    ///
+    /// Retries on commit conflicts (HTTP 412) and transient server
+    /// errors (HTTP 5xx). Default is 3.
+    pub fn max_retries(mut self, max_retries: usize) -> Self {

Review Comment:
   Done.



-- 
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]

Reply via email to