kszucs commented on code in PR #7185:
URL: https://github.com/apache/opendal/pull/7185#discussion_r2836242112
##########
core/services/hf/src/backend.rs:
##########
@@ -118,27 +120,40 @@ impl HfBuilder {
}
self
}
+
+ /// Enable XET storage protocol for reads.
Review Comment:
I was a bit defensive here to let to users explicitly disable xet, but agree
that we shouldn't provide that option. Removing it.
##########
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 {
Review Comment:
Removing.
--
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]