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

Routes is a map, employing safe read/writes ops #1760

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

hurricanehrndz
Copy link
Contributor

@hurricanehrndz hurricanehrndz commented Mar 28, 2024

Adding a mutex to the struct although the norm, could not be used due to the state being copied around. Fixes #1759

Describe your changes

Issue ticket number and link

Checklist

  • [x ] Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@CLAassistant
Copy link

CLAassistant commented Mar 28, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@lixmal lixmal left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution @hurricanehrndz. Could you also fix the tests please?

@hurricanehrndz
Copy link
Contributor Author

Thank you for your contribution @hurricanehrndz. Could you also fix the tests please?

I can definitely take a look at this weekend

@hurricanehrndz hurricanehrndz force-pushed the fix_1759 branch 2 times, most recently from 6a638c6 to c7b974a Compare April 3, 2024 20:43
@hurricanehrndz hurricanehrndz requested a review from lixmal April 3, 2024 21:55
Adding a mutex to the struct although the norm, could not be used due to
the state being copied around.
@hurricanehrndz
Copy link
Contributor Author

@lixmal PR should be good now, squashed all my commits and cleaned up the tests and some formatting issues I had introduce

@hurricanehrndz
Copy link
Contributor Author

@lixmal is there anything you require of me?

Copy link
Collaborator

@mlsmaycon mlsmaycon left a comment

Choose a reason for hiding this comment

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

Approved.

Thanks @hurricanehrndz

@lixmal lixmal merged commit 76702c8 into netbirdio:main Apr 11, 2024
16 checks passed
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
@hurricanehrndz hurricanehrndz deleted the fix_1759 branch November 29, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants