-
Notifications
You must be signed in to change notification settings - Fork 10
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
Possible refactor? downloads + post requests #118
Comments
@tarakc02 @stucka @newsroomdev There are 2 ways that i proposed that will help us to refactor this
Let me know what others think about this, or any other ideas. |
A lot of the time it's going to be a one-line fix, to call cache.write_binary to save the contents. But that skips the @naumansharifwork , I like your first proposal -- it's elegant and clean and makes a ton of sense. as long as a "data"/payload can be passed through kwargs, I think it's great. I'd also again urge we consider bumping up the download buffer size to something like 1024*1024 from the existing 8192. =) |
Oh, and if we're stripping any functionality of existing libraries we'll need to know what's using that functionality and how/when/who refactors the code. If the code is stable and fully functional and already used, there might not be a real reason to remove it ... ? |
utils.get_url
andutils.post_url
contain a lot of duplicated code, we thought we could simplify by turning them into one method.The text was updated successfully, but these errors were encountered: