Jefffrey commented on code in PR #5533:
URL: https://github.com/apache/arrow-rs/pull/5533#discussion_r1544040274
##########
object_store/src/buffered.rs:
##########
@@ -250,10 +251,21 @@ impl BufWriter {
Self {
capacity,
store,
+ max_concurrency: 8,
state: BufWriterState::Buffer(path, Vec::new()),
}
}
+ /// Override the maximum number of in-flight requests for this writer
+ ///
+ /// Defaults to 8
+ pub fn with_max_concurrency(self, max_concurrency: usize) -> Self {
+ Self {
+ max_concurrency,
+ ..self
+ }
+ }
Review Comment:
What happens if 0 is passed in?
--
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]