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

Handle allocation request retransmissions #13

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Handle allocation request retransmissions #13

merged 2 commits into from
Aug 21, 2023

Conversation

mickel8
Copy link
Member

@mickel8 mickel8 commented Aug 19, 2023

No description provided.

@mickel8 mickel8 force-pushed the alloc-ret branch 4 times, most recently from 98ab47a to 91d03d8 Compare August 19, 2023 09:53
@mickel8 mickel8 marked this pull request as ready for review August 19, 2023 10:26
@mickel8 mickel8 requested a review from LVala August 19, 2023 10:26
@@ -295,6 +310,7 @@ defmodule Rel.Listener do
used_alloc_ports =
Registry.Allocations
|> Registry.select([{{:_, :_, :"$3"}, [], [:"$3"]}])
|> Enum.map(fn alloc_origin_state -> Map.fetch!(alloc_origin_state, :alloc_port) end)
Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure about this one. On the one hand, we do this only when creating a new allocation. On the other hand, I wonder about getting rid of registry in favor of simple map stored by the listener process 🤔

Copy link
Member

@LVala LVala left a comment

Choose a reason for hiding this comment

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

Just add the comment about returned allocation lifetime that we talked about offline.

@mickel8 mickel8 merged commit 6080a5b into master Aug 21, 2023
2 checks passed
@mickel8 mickel8 deleted the alloc-ret branch August 21, 2023 07:50
This pull request was closed.
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