Skip to content

Handle allocation request retransmissions#13

Merged
mickel8 merged 2 commits intomasterfrom
alloc-ret
Aug 21, 2023
Merged

Handle allocation request retransmissions#13
mickel8 merged 2 commits intomasterfrom
alloc-ret

Conversation

@mickel8
Copy link
Contributor

@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
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
Contributor 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
Contributor

@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
@mickel8 mickel8 deleted the alloc-ret branch August 21, 2023 07:50
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

Comments