Skip to content

Commit

Permalink
chore-优化一点写法
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Dec 6, 2024
1 parent 72cfede commit 9016973
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/java/net/ximatai/muyun/gateway/TestFrontend.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ public void testFrontendNoCacheRegex() {
private void registerServer(FrontendHandler frontendHandler) {
CompletableFuture<Boolean> completableFuture = new CompletableFuture<>();
gatewayServer.register(buildConfig(frontendHandler))
.onComplete(event -> {
completableFuture.complete(event.succeeded());
});
.onComplete(event -> completableFuture.complete(event.succeeded()));

Boolean registerSuccess;
try {
Expand Down

0 comments on commit 9016973

Please sign in to comment.