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

fix: synchronize concurrent map access in traceInternalsAndAccounts #231

Closed

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Mar 8, 2023

This PR: #230 changes the internalTxs in the response from slice to map which causes panic in CI test because map is not safe for concurrent use. In order to do this safely, we create a mutex for synchronization but this may become the bottleneck that defeats the benefit of multiple concurrent goroutines run in this function.

This PR: axieinfinity#230 changes the internalTxs
in the response from slice to map which causes panic in CI test because map is
not safe for concurrent use. In order to do this safely, we create a mutex for
synchronization but this may become the bottleneck that defeats the benefit of
multiple concurrent goroutines run in this function.
@minh-bq minh-bq requested review from DNK90 and linh-1 March 8, 2023 03:12
@minh-bq minh-bq closed this Mar 9, 2023
@minh-bq minh-bq deleted the fix/map-concurrent-write branch March 9, 2023 08:39
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.

1 participant