Skip to content

Commit

Permalink
Fix blocking issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed May 22, 2024
1 parent d8dc28e commit 47dcdd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void initHandler(BuildProducer<RouteBuildItem> routes,

final RouteBuildItem route = nonApplicationRootPath.routeBuilder()
.management()
.blockingRoute()
.route("statiq/generate")
.handler(recorder.createGenerateHandler())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import io.quarkiverse.statiq.runtime.StatiqPage;
import io.quarkiverse.statiq.runtime.StatiqPages;
import io.quarkus.arc.All;
import io.smallrye.common.annotation.NonBlocking;
import io.smallrye.common.annotation.Blocking;

@ApplicationScoped
public class StatiqJsonRPCService {
Expand All @@ -21,7 +21,7 @@ public class StatiqJsonRPCService {
@Inject
StatiqGenerator generator;

@NonBlocking
@Blocking
public List<StatiqPage> getPages() {
return StatiqPages.merge(statiqPages);
}
Expand Down

0 comments on commit 47dcdd2

Please sign in to comment.