From 621c26d4056e2d02a34d266badfe37e8c78ae931 Mon Sep 17 00:00:00 2001 From: Hellblazer Date: Sun, 28 Apr 2024 11:42:09 -0700 Subject: [PATCH] prioritize joins --- choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java b/choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java index 9d071849d..877c4a896 100644 --- a/choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java +++ b/choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java @@ -1386,9 +1386,9 @@ private void join(View view) { var servers = new GroupIterator(validators.keySet()); var joined = new HashSet(); - 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()) {