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

Rework peer connection status based on the update channel existence #1213

Merged
merged 1 commit into from Oct 11, 2023

Conversation

surik
Copy link
Contributor

@surik surik commented Oct 11, 2023

With this change, we don't need to update all peers on startup. We will check the existence of an update channel when returning a list or single peer on API. Then after restarting of server consumers of API will see the peer not connected status till the creation of an updated channel which indicates the peer's successful connection.

Describe your changes

Issue ticket number and link

Checklist

  • 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

@surik surik changed the title Rework peer-connected status based on the update channel existence Rework peer connected status based on the update channel existence Oct 11, 2023
With this change, we don't need to update all peers on startup. We will
check the existence of an update channel when returning a list or single peer on API.
Then after restarting of server consumers of API will see peer not
connected status till the creation of an updated channel which indicates
peer successful connection.
@surik surik force-pushed the yury/updatechannel-based-peer-online-status branch from d770d5e to 3083d49 Compare October 11, 2023 15:33
@surik surik changed the title Rework peer connected status based on the update channel existence Rework peer connection status based on the update channel existence Oct 11, 2023
@surik surik merged commit 659110f into main Oct 11, 2023
10 checks passed
@surik surik deleted the yury/updatechannel-based-peer-online-status branch October 11, 2023 16:11
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
…etbirdio#1213)

With this change, we don't need to update all peers on startup. We will
check the existence of an update channel when returning a list or single peer on API.
Then after restarting of server consumers of API will see peer not
connected status till the creation of an updated channel which indicates
peer successful connection.
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
…etbirdio#1213)

With this change, we don't need to update all peers on startup. We will
check the existence of an update channel when returning a list or single peer on API.
Then after restarting of server consumers of API will see peer not
connected status till the creation of an updated channel which indicates
peer successful connection.
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.

None yet

2 participants