Skip to content

Commit d87c696

Browse files
committed
fail fast
1 parent d93833d commit d87c696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reconstruction/ai/src/main/java/org/jlab/service/ai/DCDenoiseEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static class PredictorPool {
4141
final BlockingQueue<Predictor> pool;
4242
public PredictorPool(int size, ZooModel model) {
4343
pool = new ArrayBlockingQueue<>(size);
44-
for (int i=0; i<size; i++) pool.offer(model.newPredictor());
44+
for (int i=0; i<size; i++) pool.add(model.newPredictor());
4545
}
4646
public Predictor get() throws InterruptedException {
4747
return pool.take();

0 commit comments

Comments
 (0)