-
Notifications
You must be signed in to change notification settings - Fork 22
refactor: NowProto DVC server-side refactoring #1452
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
base: master
Are you sure you want to change the base?
Conversation
Let maintainers know that an action is required on their side
|
597c941
to
8b1bbd6
Compare
…rt, refactoring for optional IO redirection
8b1bbd6
to
e8686d1
Compare
@@ -86,22 +87,28 @@ pub fn run_dvc_io( | |||
|
|||
let messages = message_dissector | |||
.dissect(&pdu_chunk_buffer[HEADER_SIZE..HEADER_SIZE + chunk_data_size]) | |||
.expect("BUG: Failed to dissect messages"); | |||
.context("Failed to dissect DVC messages"); |
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.
style:
.context("Failed to dissect DVC messages"); | |
.context("failed to dissect DVC messages"); |
@@ -19,7 +20,8 @@ impl NowMessageDissector { | |||
.pdu_body_buffer | |||
.filled_len() | |||
.checked_sub(self.start_pos) | |||
.expect("start_pos is greater than filled_len"); | |||
.context("Failed to get usable chunk size")?; |
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.
.context("Failed to get usable chunk size")?; | |
.context("failed to get usable chunk size")?; |
|
||
post_message_for_pid(self.pid, WM_QUIT, WPARAM(0), LPARAM(0))?; | ||
|
||
// TODO: Figure out how to correctly send CTRL+C to console applications. |
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.
note: Maybe open a Jira ticket for that?
You can then refer to it like that: TODO(DGW-XXX):
.
version = "0.2" | ||
git = "https://github.com/Devolutions/now-proto.git" | ||
branch = "fix/run-directory-api" |
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.
issue(blocking): Just adding a comment for tracking this before we merge.
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.
I didn’t spot anything critical, the code is looking good to me. I’ll leave the rest to you, feel free to merge once you updated the version 🙂
What is included in this PR
Blocked by Devolutions/now-proto#33 and NowProto new release