diff --git a/CHANGELOG.md b/CHANGELOG.md index 366c773..c5aac7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a CH ## [1.4.1] - 2017-11-19 -* Fixes PHP warning when trying to get ready request IDs - [#14] +### Fixes + +* PHP warning when trying to get ready request IDs - [#14] + +### Improves + +* Loop performance ## [1.4.0] - 2017-09-28 diff --git a/src/Client.php b/src/Client.php index 4a86137..cf01e93 100644 --- a/src/Client.php +++ b/src/Client.php @@ -39,8 +39,6 @@ */ class Client { - const LOOP_TICK_USEC = 2000; - /** @var ConfiguresSocketConnection */ private $connection; @@ -160,8 +158,6 @@ public function waitForResponse( int $requestId, $timeoutMs = null ) $this->fetchResponseAndNotifyCallback( $socket, $timeoutMs ); break; } - - usleep( self::LOOP_TICK_USEC ); } } @@ -184,8 +180,6 @@ public function waitForResponses( $timeoutMs = null ) { $this->fetchResponseAndNotifyCallback( $socket, $timeoutMs ); } - - usleep( self::LOOP_TICK_USEC ); } }