Skip to content
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

Merged
merged 1 commit into from May 9, 2017
Merged

Add .first to bind #2275

merged 1 commit into from May 9, 2017

Conversation

reset
Copy link
Collaborator

@reset reset commented May 9, 2017

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

Related to #2253

`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>
@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

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>>,
Copy link
Collaborator Author

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

@reset
Copy link
Collaborator Author

reset commented May 9, 2017

tenor-100976617

If anyone objects feel free to comment after this merge!

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 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:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit 317d1d3 into master May 9, 2017
@thesentinels thesentinels deleted the first-bind branch May 9, 2017 01:12
@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component and removed A-supervisor labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants