Skip to content

Use a named struct instead of a pair in key_value_store_base.h#23904

Merged
RyanTheOptimist merged 3 commits intoenvoyproxy:mainfrom
RyanTheOptimist:ValueWithTtl
Nov 9, 2022
Merged

Use a named struct instead of a pair in key_value_store_base.h#23904
RyanTheOptimist merged 3 commits intoenvoyproxy:mainfrom
RyanTheOptimist:ValueWithTtl

Conversation

@RyanTheOptimist
Copy link
Copy Markdown
Contributor

std::pair tends to result in fairly unreadable code so use a named struct instead.

Also make members private instead of public as per the style guide.

Signed-off-by: Ryan Hamilton rch@google.com

Risk Level: Low
Testing: Existing tests
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Ryan Hamilton <rch@google.com>
Signed-off-by: Ryan Hamilton <rch@google.com>
@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

/assign @alyssawilk

alyssawilk
alyssawilk previously approved these changes Nov 8, 2022
Signed-off-by: Ryan Hamilton <rch@google.com>
Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

hah! I was surprised it didn't require test updates

@RyanTheOptimist RyanTheOptimist merged commit e784757 into envoyproxy:main Nov 9, 2022
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.

2 participants