Skip to content

Commit

Permalink
Fixed some file transfer issues. Using message io 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Nov 27, 2020
1 parent 5461037 commit 59c65b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Changelog

## Release 1.1.2
- Fixed issue that blocks the receiver of a file while the file was sending.
- Fixed an issue that blocks the receiver of a file while the file was sending.
- Fixed an issue that appended data to the end of the file once transfered.
- Fixed an issue that lost some data in the file transfer.

## Release 1.1.1
- Fixed minor visual printed line removed.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ categories = ["command-line-utilities", "command-line-interface"]
maintenance = { status = "actively-developed" }

[dependencies]
message-io = "0.4.5"
message-io = "0.4.6"
serde = { version = "1.0.116", features = ["derive"] }
crossterm = "0.18.0"
tui = { version = "0.12.0", default-features = false, features = ['crossterm'] }
Expand Down
2 changes: 1 addition & 1 deletion src/commands/send_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct SendFile {
}

impl SendFile {
const CHUNK_SIZE: usize = 65535;
const CHUNK_SIZE: usize = 32768;

pub fn new(file_path: &str) -> Result<SendFile> {
const READ_FILENAME_ERROR: &str = "Unable to read file name";
Expand Down

0 comments on commit 59c65b8

Please sign in to comment.