소스 검색

Reduce search timeout from 30 seconds to 10 seconds

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel 5 년 전
부모
커밋
f85fa41817
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      gradle.properties
  2. 1 1
      src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java

+ 1 - 1
gradle.properties

@@ -1,4 +1,4 @@
-mod_version=4.1.9-unstable
+mod_version=4.1.10-unstable
 supported_version=20w16a
 minecraft_version=20w16a
 yarn_version=20w16a+build.1

+ 1 - 1
src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java

@@ -588,7 +588,7 @@ public class EntryListWidget extends WidgetWithBounds {
                         }));
                     }
                     try {
-                        CompletableFuture.allOf(completableFutures.toArray(new CompletableFuture[0])).get(30, TimeUnit.SECONDS);
+                        CompletableFuture.allOf(completableFutures.toArray(new CompletableFuture[0])).get(10, TimeUnit.SECONDS);
                     } catch (InterruptedException | ExecutionException | TimeoutException e) {
                         e.printStackTrace();
                     }