From 0d6c84dc04b94df974c84a8ff54384a46078a7e4 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Mon, 15 Nov 2021 09:30:50 +0100 Subject: [PATCH 1/2] chore: use async HTTP call --- src/InfluxDB2/DefaultApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); From e8527d7260393b1f697882029195580d10f88a72 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Mon, 15 Nov 2021 10:00:00 +0100 Subject: [PATCH 2/2] docs: update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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