Skip to content

Commit 1ded39a

Browse files
authored
Correct the ordering of whenSent in doc snippet (helidon-io#8884)
Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
1 parent dc26d36 commit 1ded39a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/src/main/java/io/helidon/docs/se/guides/MetricsSnippets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ public void routing(HttpRules rules) {
174174

175175
private void getDefaultMessageHandler(ServerRequest request, ServerResponse response) {
176176
Timer.Sample timerSample = Timer.start(); // <3>
177-
sendResponse(response, "Here are some cards ...");
178177
response.whenSent(() -> timerSample.stop(cardTimer)); // <4>
178+
sendResponse(response, "Here are some cards ...");
179179
}
180180

181181
private void sendResponse(ServerResponse response, String msg) {

0 commit comments

Comments
 (0)