mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 10:03:27 +01:00
Making the function name consistent
This commit is contained in:
parent
ec1f1a8b56
commit
2e3532155d
@ -65,13 +65,13 @@ class StreamHandler
|
||||
$e = new ConnectException($e->getMessage(), $request, $e);
|
||||
}
|
||||
$e = RequestException::wrapException($request, $e);
|
||||
$this->invokeStatsFunction($options, $request, $startTime, null, $e);
|
||||
$this->invokeStats($options, $request, $startTime, null, $e);
|
||||
|
||||
return new RejectedPromise($e);
|
||||
}
|
||||
}
|
||||
|
||||
private function invokeStatsFunction(
|
||||
private function invokeStats(
|
||||
array $options,
|
||||
RequestInterface $request,
|
||||
$startTime,
|
||||
@ -122,7 +122,7 @@ class StreamHandler
|
||||
$this->drain($stream, $sink);
|
||||
}
|
||||
|
||||
$this->invokeStatsFunction($options, $request, $startTime, $response, null);
|
||||
$this->invokeStats($options, $request, $startTime, $response, null);
|
||||
|
||||
return new FulfilledPromise($response);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user