New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer downloads in memory not on disk #6746
Buffer downloads in memory not on disk #6746
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
@@ -100,6 +101,7 @@ def create_scheduler(rules, validate=True, native=None): | |||
native, | |||
FileSystemProjectTree(os.getcwd()), | |||
'./.pants.d', | |||
safe_mkdtemp(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a good default? Or do we want to default to the usual/global directory unless it's been overridden?
189e59d
to
653e279
Compare
653e279
to
e197e93
Compare
}).to_boxed() | ||
}).and_then(move |(actual_digest, file_name, tempdir)| { | ||
|
||
let hasher = hashing::WriterHasher::new(SizeLimiter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You found an instance where I miss the Java anonymous classes to implement interfaces like this. That said, I don't disagree with this code.
No description provided.