Skip to content

Commit

Permalink
change to a better class
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Nov 21, 2024
1 parent f53a656 commit 542de96
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down Expand Up @@ -354,7 +355,7 @@ private void checkSearchPipelineBeforeDeleteModel(String modelId, ActionListener
private void checkDownstreamTaskBeforeDeleteModel(String modelId, Boolean isHidden, ActionListener<DeleteResponse> actionListener) {
CountDownLatch countDownLatch = new CountDownLatch(3);
AtomicBoolean noneBlocked = new AtomicBoolean(true);
CopyOnWriteArrayList<String> errorMessages = new CopyOnWriteArrayList<>();
ConcurrentLinkedQueue<String> errorMessages = new ConcurrentLinkedQueue<>();
ActionListener<Boolean> countDownActionListener = ActionListener.wrap(b -> {
countDownLatch.countDown();
noneBlocked.compareAndSet(true, b);
Expand Down

0 comments on commit 542de96

Please sign in to comment.