-
Notifications
You must be signed in to change notification settings - Fork 10
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
add validation to node name, can't be empty #266
Conversation
@@ -28,13 +28,14 @@ pub fn merge_errors_vecs( | |||
} | |||
|
|||
pub fn ensure_node_name_unique( | |||
node_name: String, | |||
node_name: impl Into<String>, |
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.
AsRef<str>
might be an even better candidate across the crate for this, accepting both &str
and String
, but this is a nitpick
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.
Ahh yes, I will change in a follow pr. Thanks!
Fix: - Grandpa keys injected. #267 Added: - Name validation (for nodes) #266 - Improve dx (@ozgunozerk ) #261
Add:
node_name
, can't be emptycc: @ozgunozerk