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: Create DaeNetns instance strictly once on reload #446

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

jschwinger233
Copy link
Member

@jschwinger233 jschwinger233 commented Jan 27, 2024

Background

Previously DaeNetns instance can be re-created on reload, breaking the singleton pattern. This PR fixes it by introducing sync.Once.

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #449

Test Result

@QiuSimons
Copy link

it works, indeed.

Copy link
Contributor

@dae-prow dae-prow bot left a comment

Choose a reason for hiding this comment

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

🧪 Since the PR has been fully tested, please consider merging it.

@sumire88
Copy link
Contributor

@jschwinger233 Shall we proceed?

@jschwinger233 jschwinger233 merged commit 4d6d98c into daeuniverse:main Jan 29, 2024
30 checks passed
@jschwinger233 jschwinger233 deleted the gray/fix-daens branch January 29, 2024 10:56
@dae-prow dae-prow bot mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] < DNS Response Failures With Log ‘sendto: network is unreachable’>
4 participants