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 rpcClient.Address() race condition #1607

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Fix rpcClient.Address() race condition #1607

merged 2 commits into from
Aug 29, 2023

Conversation

bitwiseguy
Copy link
Contributor

@bitwiseguy bitwiseguy commented Aug 29, 2023

Fix rpcClient.Address() race condition that caused a CI failure when changes were merged into main: https://github.com/statechannels/go-nitro/actions/runs/6012869180/job/16309076480

@netlify
Copy link

netlify bot commented Aug 29, 2023

👷 Deploy Preview for nitrodocs processing.

Name Link
🔨 Latest commit a2c0f1b
🔍 Latest deploy log https://app.netlify.com/sites/nitrodocs/deploys/64edf53e403bff00088df559

@netlify
Copy link

netlify bot commented Aug 29, 2023

Deploy Preview for nitro-gui canceled.

Name Link
🔨 Latest commit a2c0f1b
🔍 Latest deploy log https://app.netlify.com/sites/nitro-gui/deploys/64edf53e6f22d6000782b827

@netlify
Copy link

netlify bot commented Aug 29, 2023

Deploy Preview for nitro-storybook canceled.

Name Link
🔨 Latest commit a2c0f1b
🔍 Latest deploy log https://app.netlify.com/sites/nitro-storybook/deploys/64edf53e9684a10008b84f2d

@bitwiseguy bitwiseguy changed the title Fix race Fix rpcClient.Address() race condition Aug 29, 2023
Copy link
Contributor

@kerzhner kerzhner left a comment

Choose a reason for hiding this comment

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

Nicely done!

@@ -178,7 +178,7 @@ func main() {

logging.SetupDefaultLogger(os.Stdout, slog.LevelDebug)

node, _, _, _, err := node.InitializeNode(pkString, chainOpts, useDurableStore, durableStoreFolder, msgPort, os.Stdout, peerSlice)
node, _, _, _, err := node.InitializeNode(pkString, chainOpts, useDurableStore, durableStoreFolder, msgPort, peerSlice)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just checking, but it seems like this change is unrelated to the race condition. Is that correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it is unrelated to the race condition. Just something I noticed when scanning through the code. Its related to the PR that was merged this morning

@bitwiseguy bitwiseguy merged commit b94617a into main Aug 29, 2023
2 checks passed
@bitwiseguy bitwiseguy deleted the fix-race branch August 29, 2023 14:06
lalexgap added a commit that referenced this pull request Aug 30, 2023
This reverts commit b94617a, reversing
changes made to 91837d4.
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