mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 13:23:04 +01:00
Formatting
This commit is contained in:
@@ -43,12 +43,14 @@ class InfluxDBVersion1Wrapper implements InfluxDBWrapperInterface
|
|||||||
public function createDatabase(string $database): bool
|
public function createDatabase(string $database): bool
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->database->create(new RetentionPolicy(
|
$this->database->create(
|
||||||
'speedtest_retention_policy',
|
new RetentionPolicy(
|
||||||
config('services.influxdb.retention'),
|
'speedtest_retention_policy',
|
||||||
1,
|
config('services.influxdb.retention'),
|
||||||
true
|
1,
|
||||||
));
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user