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

libnetwork/d/overlay: handle peer ops directly #45164

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

corhere
Copy link
Contributor

@corhere corhere commented Mar 14, 2023

Funneling the peer operations into an unbuffered channel only serves to achieve the same result as a mutex, using a lot more boilerplate and indirection. Get rid of the boilerplate and unnecessary indirection by using a mutex and calling the operations directly.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Funneling the peer operations into an unbuffered channel only serves to
achieve the same result as a mutex, using a lot more boilerplate and
indirection. Get rid of the boilerplate and unnecessary indirection by
using a mutex and calling the operations directly.

Signed-off-by: Cory Snider <csnider@mirantis.com>
@corhere corhere added status/2-code-review area/networking kind/refactor PR's that refactor, or clean-up code labels Mar 14, 2023
@corhere corhere added this to the v-next milestone Mar 14, 2023
@corhere
Copy link
Contributor Author

corhere commented Mar 14, 2023

PTAL @akerouanton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants