Skip to content

Commit

Permalink
Merge branch 'main' into support-custom-network
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez authored Oct 1, 2024
2 parents ca86bb4 + bfc2f5f commit 5168904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,14 @@ func (s *server) updateClusterInfo() {
func (s *server) WaitForHealthy(ctx context.Context, _ *rpcpb.WaitForHealthyRequest) (*rpcpb.WaitForHealthyResponse, error) {
s.log.Debug("WaitForHealthy")

s.mu.RLock()
if s.network == nil {
s.mu.RUnlock()
return nil, ErrNotBootstrapped
}
ctx, cancel := context.WithTimeout(ctx, s.network.GetWaitForHealthyTimeout())
defer cancel()
s.mu.RUnlock()

for {
s.mu.RLock()
Expand Down

0 comments on commit 5168904

Please sign in to comment.