Skip to content

Commit 1d3ccc1

Browse files
committed
chore: optimize performance
1 parent 9b573d5 commit 1d3ccc1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/tech/wetech/flexmodel/application/ApiRuntimeApplicationService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ public void log(RoutingContext routingContext, Runnable runnable) {
192192
apiData.setStatus(routingContext.response().getStatusCode());
193193
apiData.setMessage(routingContext.response().getStatusMessage());
194194
apiData.setExecTime(System.currentTimeMillis() - beginTime);
195-
apiLogService.create(apiLog);
196-
}
195+
routingContext.addEndHandler(handle-> apiLogService.create(apiLog));}
197196

198197
}
199198

0 commit comments

Comments
 (0)