Skip to content

grid: clean up return value#15950

Merged
alyssawilk merged 2 commits intoenvoyproxy:mainfrom
alyssawilk:enum
Apr 14, 2021
Merged

grid: clean up return value#15950
alyssawilk merged 2 commits intoenvoyproxy:mainfrom
alyssawilk:enum

Conversation

@alyssawilk
Copy link
Copy Markdown
Contributor

per Greg's solid point on #15892

Risk Level: n/a (code not yet used)
Testing: existing tests pass
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Copy Markdown
Contributor

@RyanTheOptimist RyanTheOptimist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! One comment about the comment :)

LinkedList::moveIntoList(std::move(wrapped_callback), wrapped_callbacks_);
// Note that in the case of immediate attempt/failure, newStream will delete this.
if (wrapped_callbacks_.front()->newStream()) {
// Note that in the case of immediate attempt/failure, newStream deletes the wrapped callback.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, I also re-wrote this comment (differently) in my PR, by moving the text inside the if (ImmediateResult) which is nice because the comment really only applies to that branch.

std::vector<Http::Protocol> protocols_;
};

enum class StreamCreationResult {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm slightly surprised this doesn't exist at the general connection pool layer. But this is super great in any case!

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Copy Markdown
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thanks!

@alyssawilk alyssawilk merged commit 5860602 into envoyproxy:main Apr 14, 2021
douglas-reid pushed a commit to douglas-reid/envoy that referenced this pull request Apr 19, 2021
Risk Level: n/a (code not yet used)
Testing: existing tests pass
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
Monkeyanator pushed a commit to Monkeyanator/envoy that referenced this pull request Apr 20, 2021
Risk Level: n/a (code not yet used)
Testing: existing tests pass
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk alyssawilk deleted the enum branch February 28, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants