Skip to content

Fix registry ets package timestamp purging#1125

Merged
ericmj merged 1 commit intohexpm:mainfrom
elfenlaid:fix-timestamp-purging
Mar 29, 2026
Merged

Fix registry ets package timestamp purging#1125
ericmj merged 1 commit intohexpm:mainfrom
elfenlaid:fix-timestamp-purging

Conversation

@elfenlaid
Copy link
Copy Markdown
Contributor

The changes fix typo in timestamp and now Hex.Registry.Server.prefetch should properly clean all entries associated with packages from state.ets.

The rest of the file uses timestamp keys, like here:

:ets.insert(tid, {{:timestamp, repo, package, version}, now})

I also checked for typos in other keys or key that could be omitted from purge_repo_matchspec, just in case, but everything seems fine aside from that typo in timestamp.

@ericmj
Copy link
Copy Markdown
Member

ericmj commented Mar 29, 2026

Nice find. Thank you! 💜

@ericmj ericmj merged commit 6704968 into hexpm:main Mar 29, 2026
12 checks passed
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