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/data race #1029

Merged
merged 2 commits into from
Dec 17, 2021
Merged

Fix/data race #1029

merged 2 commits into from
Dec 17, 2021

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Dec 16, 2021

Did you run make format && make check?
yes

Fixes #1027

Changes:

  • Added waitgroup for stun module
  • Moved wgTrackers

How to test this PR:

  1. Start hypervisor ./skywire-visor -c skywire-config.json
  2. Immediatly start the vpn-client

This commit adds a waitgroup for the stunmodule and waits for it in getRouteSetupHooks to fix the datarace.
This commit moves the wgTrackers Add() and Done() funcs of the waitgroup close to the NewDmsgTrackerManager usage and also the Wait() func before the usage of v.trackers in Summary() to spped up the start of hypervisor.
Copy link
Contributor

@mrpalide mrpalide left a comment

Choose a reason for hiding this comment

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

Good. 👌

@jdknives jdknives merged commit 22137f2 into skycoin:develop Dec 17, 2021
@ersonp ersonp deleted the fix/data-race branch April 11, 2022 15:38
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.

3 participants