Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b685f07

Browse files
authored
Merge pull request #9 from brycefranzen/addTimeout
Add influx provider timeout functionality
2 parents 6a5bb27 + c8f9664 commit b685f07

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/InfluxDBServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function boot()
1616
$this->publishes([
1717
$this->configPath() => config_path('influxdb.php')
1818
]);
19-
19+
2020
$this->mergeConfigFrom($this->configPath(), 'influxdb');
2121

2222
if (config('influxdb.use_monolog_handler') === 'true') {
@@ -48,7 +48,7 @@ public function register()
4848
config('influxdb.host'),
4949
config('influxdb.port'),
5050
'' //config('influxdb.database')
51-
)
51+
), config('influxdb.timeout')
5252
);
5353
} catch (ClientException $e) {
5454
// die silently

src/config/InfluxDB.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@
3737
* Use 0 for no limit
3838
*/
3939
'log_message_lines_limit' => env('LARAVEL_INFLUX_PROVIDER_LOG_MESSAGE_LINES_LIMIT', 5),
40+
41+
/**
42+
* Timeout
43+
*/
44+
'timeout' => env('LARAVEL_INFLUX_PROVIDER_TIMEOUT', 0),
4045
];

0 commit comments

Comments
 (0)