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 .first
to bind
#2275
Add .first
to bind
#2275
Conversation
`bind` and `svc` should feel fairly similar. This will add the `first` field to the bind struct to enable consumers of a service group through a bind to have access to that field as well Signed-off-by: Jamie Winsor <jamie@vialstudios.com>
Thanks for the pull request! Here is what will happen next:
Thank you for contributing! |
@@ -37,12 +37,16 @@ impl<'a> Binds<'a> { | |||
|
|||
#[derive(Clone, Debug, Serialize)] | |||
pub struct BindGroup<'a> { | |||
members: Vec<SvcMember<'a>>, | |||
pub first: Option<SvcMember<'a>>, |
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.
Optional binds may never populate with members, so we need to have this be an Option
If anyone objects feel free to comment after this merge! @thesentinels approve |
🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests. |
Travis CI has started testing this PR. |
💖 Travis CI reports this PR passed. It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now. I just want you and the contributor to answer me one question: |
bind
andsvc
should feel fairly similar. This will add thefirst
field to the bind struct to enable consumers of a service group through
a bind to have access to that field as well
Related to #2253