Skip to content

Commit

Permalink
#8069 handled review comments again
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Jan 18, 2023
1 parent e8ad28e commit 1cd5831
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,25 @@ private HttpStream recordingWrapper(HttpStream httpStream)
public void succeeded()
{
// Take the httpStream nano timestamp before calling super.
long before = httpStream.getNanoTime();
long begin = httpStream.getNanoTime();
super.succeeded();
fireOnRequestComplete(before);
fireOnRequestComplete(begin);
}

@Override
public void failed(Throwable x)
{
// Take the httpStream nano timestamp before calling super.
long before = httpStream.getNanoTime();
long begin = httpStream.getNanoTime();
super.failed(x);
fireOnRequestComplete(before);
fireOnRequestComplete(begin);
}

private void fireOnRequestComplete(long before)
private void fireOnRequestComplete(long begin)
{
try
{
onRequestComplete(NanoTime.since(before));
onRequestComplete(NanoTime.since(begin));
}
catch (Throwable t)
{
Expand Down

0 comments on commit 1cd5831

Please sign in to comment.