-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat] Add Key Command #101
Conversation
.with_context(|| "Failed to create monitoring key file")?; | ||
|
||
file.write(signer.to_hex().as_bytes()) | ||
.with_context(|| "Failed to write monitoring key file")?; |
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.
Can we make file creation and writing atomic, now if there is writing error, user will get empty file?
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.
If it's hard, can ignore
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.
switched to user input
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.
still see the file creation and writing na
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.
resolved
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.
apart from this comment, everything else is ok
.with_context(|| "Failed to create monitoring key file")?; | ||
|
||
file.write(signer.to_hex().as_bytes()) | ||
.with_context(|| "Failed to write monitoring key file")?; |
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.
still see the file creation and writing na
Implementation details
Please ensure the following requirements are met before submitting a pull request:
CHANGELOG.md
Files changed
tab in the GitHub PR explorer)