We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5772f2d commit 3b1d946Copy full SHA for 3b1d946
opengrok-web/src/main/java/org/opengrok/web/api/v1/controller/SystemController.java
@@ -34,6 +34,7 @@
34
import javax.ws.rs.core.MediaType;
35
import java.io.IOException;
36
import java.util.Collections;
37
+import java.util.concurrent.CompletableFuture;
38
39
@Path("/system")
40
public class SystemController {
@@ -48,7 +49,7 @@ public class SystemController {
48
49
@Consumes(MediaType.TEXT_PLAIN)
50
public void refresh(final String project) {
51
env.maybeRefreshIndexSearchers(Collections.singleton(project));
- suggester.rebuild(project);
52
+ CompletableFuture.runAsync(() -> suggester.rebuild(project));
53
}
54
55
@PUT
0 commit comments