Skip to content

Commit

Permalink
prioritize joins
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Apr 28, 2024
1 parent 4036cac commit 621c26d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java
Original file line number Diff line number Diff line change
Expand Up @@ -1386,9 +1386,9 @@ private void join(View view) {
var servers = new GroupIterator(validators.keySet());
var joined = new HashSet<Member>();

var delay = Duration.ofMillis(Entropy.nextSecureInt(100));
var delay = Duration.ofMillis(Entropy.nextSecureInt(5));

Thread.ofVirtual().start(() -> {
Thread.ofPlatform().start(() -> {
log.error("Starting join of: {} diadem {} on: {}", nextViewId.get(), Digest.from(view.getDiadem()),
params.member().getId());
while (!joining.isDone() && joined.size() < view.getMajority()) {
Expand Down

0 comments on commit 621c26d

Please sign in to comment.