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

Add waiting for establishing network connections #267

Merged

Conversation

matejpavlovic
Copy link
Contributor

No description provided.

Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

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

LGTM.

Signed-off-by: Matej Pavlovic <matopavlovic@gmail.com>
@matejpavlovic matejpavlovic merged commit c17e8e2 into consensus-shipyard:main Oct 10, 2022
@matejpavlovic matejpavlovic deleted the net-wait-for-conns branch October 10, 2022 17:20
if numConnections >= n-1 {
return
}
time.Sleep(connWaitPollInterval)
Copy link
Contributor

Choose a reason for hiding this comment

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

Busy waiting? 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

polling ;-)

(This is just an ad-hoc implementation that we needed quickly, it can be done properly together with the next overhaul of the transport module that will need to happen at some point anyway.)

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