Skip to content

Commit 3b4aa0c

Browse files
author
Stephane Landelle
committed
minor clean up
1 parent cc3d57f commit 3b4aa0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/request/timeout/RequestTimeoutTimerTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public void run(Timeout timeout) throws Exception {
4545
}
4646

4747
if (!nettyResponseFuture.isDone() && !nettyResponseFuture.isCancelled()) {
48+
String message = "Request timed out to " + nettyResponseFuture.getChannelRemoteAddress() + " of " + nettyResponseFuture.getRequestTimeoutInMs() + " ms";
4849
long age = millisTime() - nettyResponseFuture.getStart();
49-
expire("Request timed out to " + nettyResponseFuture.getChannelRemoteAddress() + " of "
50-
+ nettyResponseFuture.getRequestTimeoutInMs() + " ms", age);
50+
expire(message, age);
5151
nettyResponseFuture.setRequestTimeoutReached();
5252
}
5353
}

0 commit comments

Comments
 (0)