Skip to content

Commit

Permalink
Increase leader health check timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre committed Feb 10, 2024
1 parent 5c78248 commit 36e7271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leader/internal/models/consensus_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (l *LeaderConsensusHandler) AmIMaster() bool {
}

func (l *LeaderConsensusHandler) IsReplicaAvailable() bool {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()
return l.replicaClient.IsHealthy(ctx)
}
Expand Down

0 comments on commit 36e7271

Please sign in to comment.