-
Notifications
You must be signed in to change notification settings - Fork 27
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
Implement upload file #59
Conversation
@Miyoshi-Ryota how does this draft look to you? I could write unit tests and also use buffers, but don't have much time 😅 |
CommentThanks for your work. It's been excellent. There are a few tasks we need to address before releasing. Some you might already be aware of.
If you don't have time to write unit tests, etc., I can merge this PR. And I'll take care of these tasks on this weekend. Question
By the way, what does this sentence mean? Where are the areas for improvement assumed? |
right now we load the entirety of the local file into memory https://github.com/Miyoshi-Ryota/async-ssh2-tokio/pull/59/files#diff-7f93c4e263c4e9ec748f804c7fd04a3b2fde86ffd741fb5516d67e1097bae4c1R275 we should use buffers to avoid overloading the memory space and for a more "streaming" based approach |
I completely understood, thanks. The buffer issue can be modified later without destroying the interface, and I think it can be merged as is. |
@Miyoshi-Ryota how do I replicate the linter errors? When I run |
Using rust version as 1.69, rust clippy throws this warnings.
|
@hwrdtm
|
The
Would you mind explaining why this is better? |
Ok, I understood.
specifying "tokio=1" provides a more flexible choice of tokio version for the library user.
...However, russh specifies tokio="1.17.0". So specifying tokio=1 and tokio=1.14.0 leads completely same result that 1.17.0 or higher tokio is only acceptable to build my crates. So, I leave the decision of tokio=1 or 1.14.0 to you. |
@hwrdtm |
Thank you! |
What
This PR:
Misc
Related to #14