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

Implement lightweight method to check is peer has update channel #1351

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

surik
Copy link
Contributor

@surik surik commented Dec 1, 2023

Instead of GetAllConnectedPeers that needs to traverse the whole connections map to find one channel there.

This also removes update channel manager metrics with ms time unit as micro should be enough.

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

Instead of GetAllConnectedPeers that need to traverse the whole
connections map in order to find one channel there.
@surik surik marked this pull request as ready for review December 1, 2023 14:53
@mlsmaycon mlsmaycon merged commit 27ed88f into main Dec 5, 2023
15 checks passed
@mlsmaycon mlsmaycon deleted the yury/add-am-HasConnectedChannel branch December 5, 2023 13:17
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
…birdio#1351)

Instead of GetAllConnectedPeers that need to traverse the whole
connections map in order to find one channel there.
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
…birdio#1351)

Instead of GetAllConnectedPeers that need to traverse the whole
connections map in order to find one channel there.
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