-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error instead of panicking if rewriting fails (#343)
* Return error instead of panicing if rewriting fails Signed-off-by: v01dstar <[email protected]> * Update rust version Signed-off-by: v01dstar <[email protected]> * Update rust version in github workflow Signed-off-by: v01dstar <[email protected]> * Update src/file_pipe_log/pipe.rs Co-authored-by: lucasliang <[email protected]> Signed-off-by: v01dstar <[email protected]> * Update src/file_pipe_log/pipe.rs Co-authored-by: lucasliang <[email protected]> Signed-off-by: v01dstar <[email protected]> * Address comments, fix test cases Signed-off-by: v01dstar <[email protected]> * Fix format error Signed-off-by: v01dstar <[email protected]> * Move panic inside Signed-off-by: Yang Zhang <[email protected]> * Fix clippy Signed-off-by: Yang Zhang <[email protected]> * Propagate error if writing header fails Signed-off-by: Yang Zhang <[email protected]> * Adjust write header fail expectation, from panic to error Signed-off-by: v01dstar <[email protected]> * Panic if write header fails since we do not truncate Signed-off-by: v01dstar <[email protected]> * Failure other than sync should be returned Signed-off-by: v01dstar <[email protected]> * Address comments Signed-off-by: Yang Zhang <[email protected]> * Fix test failures Signed-off-by: Yang Zhang <[email protected]> * Change test exepectations Signed-off-by: Yang Zhang <[email protected]> * Address comments Signed-off-by: Yang Zhang <[email protected]> * Fix format Signed-off-by: Yang Zhang <[email protected]> * Revert sync() signature Signed-off-by: Yang Zhang <[email protected]> * Add more details to rotate test Signed-off-by: Yang Zhang <[email protected]> * Fix style Signed-off-by: Yang Zhang <[email protected]> * Address comments Signed-off-by: Yang Zhang <[email protected]> * Address comments Signed-off-by: Yang Zhang <[email protected]> * Fix clippy Signed-off-by: Yang Zhang <[email protected]> * Trigger Github actions Signed-off-by: Yang Zhang <[email protected]> --------- Signed-off-by: v01dstar <[email protected]> Signed-off-by: Yang Zhang <[email protected]> Co-authored-by: lucasliang <[email protected]>
- Loading branch information
1 parent
385182b
commit e8de5d7
Showing
7 changed files
with
84 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters