Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Replace async loop by sync loop #2009

Merged
merged 1 commit into from
May 13, 2019
Merged

Conversation

frangio
Copy link
Contributor

@frangio frangio commented May 11, 2019

Some situations (very hard to reproduce) were causing a "stack too deep" error.

I found the cause to be a synchronous loop implemented with async.whilst where the callback was being invoked synchronously. I haven't checked for other occurences of this in the codebase.

(I haven't tested this because I don't have the dev environment set up.)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.007%) to 69.74% when pulling 40c4eef on frangio:fix-sync-loop into 5850d26 on trufflesuite:develop.

Copy link
Contributor

@gnidan gnidan left a comment

Choose a reason for hiding this comment

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

Thanks for this @frangio!

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

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

🙌

@gnidan gnidan merged commit 32237dc into trufflesuite:develop May 13, 2019
@frangio frangio deleted the fix-sync-loop branch May 13, 2019 02:10
@cgewecke cgewecke mentioned this pull request May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants