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

Revert "chore(sig): define signature metadata statically" #4321

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

rscampos
Copy link
Contributor

Reverts #4237

Initially, we improved performance by statically defining the metadata of a signature. However, we later discovered a data race issue when a JSON library attempted to iterate over the properties of the detect.SignatureMetadata map while another goroutine was modifying the same object.

A possible future improvement would be to transform the metadata, which currently uses abstract types, into concrete types. This would allow us to statically define it without any issues.

The issues that arose after migrating the signature metadata to be static:

#4313
#4298

@rscampos rscampos merged commit ed8304d into main Sep 23, 2024
7 checks passed
@rscampos rscampos deleted the revert-4237-chore_signature_metadata_golang branch September 24, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants