diff --git a/CHANGELOG.md b/CHANGELOG.md index e75a9e7a..1fd73ab4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 2.4.0 [unreleased] +### Features +1. [#102](https://github.com/influxdata/influxdb-client-php/pull/102): Use async HTTP calls to achieve better performance in a multithreading environment. + ### Bug Fixes 1. [#101](https://github.com/influxdata/influxdb-client-php/pull/101): Fix parsing Query response with contains new lines in field values diff --git a/src/InfluxDB2/DefaultApi.php b/src/InfluxDB2/DefaultApi.php index 33ceecd1..d3b92ef6 100644 --- a/src/InfluxDB2/DefaultApi.php +++ b/src/InfluxDB2/DefaultApi.php @@ -80,7 +80,7 @@ private function request($payload, $uriPath, $queryParams, $method, $timeout = n } //execute post call - $response = $this->http->request($method, $uriPath, $options); + $response = $this->http->requestAsync($method, $uriPath, $options)->wait(); $statusCode = $response->getStatusCode();