Skip to content

Commit

Permalink
chore: use async HTTP call (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored Nov 22, 2021
1 parent e489e4f commit f467e85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/InfluxDB2/DefaultApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit f467e85

Please sign in to comment.