Skip to content

Commit

Permalink
Fix code example
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Sep 1, 2024
1 parent afa6e6c commit b3d32c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ via the API such as querying time-series data, managing metadata and storing dat
## Usage

```php
$openTsdbBaseUri = 'http://localhost:4242';
$httpClient = \Http\Adapter\Guzzle7\Client::createWithConfig(
[
'timeout' => 4,
'connect_timeout' => 2,
'http_errors' => false,
],
);
$openTsdbBaseUri = 'http://localhost:4242';

$openTsdbClient = new OpenTsdbClient(
$openTsdbBaseUri,
$httpClient,
$openTsdbBaseUri,
);

$metricName = 'test_metric';
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./test</directory>
<directory suffix="Test.php">./test/Unit</directory>
</testsuite>
</testsuites>
<php>
Expand Down

0 comments on commit b3d32c9

Please sign in to comment.