Skip to content

Do not use protocols during consolidation to avoid races #13856

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

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

josevalim
Copy link
Member

No description provided.

@@ -498,7 +498,7 @@ defmodule Protocol do

defp extract_matching_by_attribute(paths, prefix, callback) do
for path <- paths,
path = to_charlist(path),
path = if(is_list(path), do: path, else: String.to_charlist(path)),
Copy link
Member

Choose a reason for hiding this comment

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

My 2c: a comment here would be worth it, because by reading this I’m afraid the first thought would be "oh with to_charlist/1 this could be simpler 😄

@josevalim josevalim merged commit dcf31be into main Sep 24, 2024
18 checks passed
@josevalim josevalim deleted the jv-protocol-race branch September 24, 2024 15:22
@josevalim
Copy link
Member Author

💚 💙 💜 💛 ❤️

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

Successfully merging this pull request may close these issues.

2 participants