Skip to content

Commit e529b42

Browse files
committed
Removed mention connection_timeout_seconds
1 parent 16b6cab commit e529b42

8 files changed

Lines changed: 3 additions & 24 deletions

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
TYPESENSE_DATA_DIR: /data
88
TYPESENSE_API_KEY: xyz
99
volumes:
10-
- /tmp/typesense-server-data/:/data
10+
- /tmp/typesense-server-data:/data
1111
ports:
1212
- 8108:8108
1313
restart: "no"

examples/alias_operations.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
'protocol' => 'http',
1919
],
2020
],
21-
'connection_timeout_seconds' => 2,
2221
'client' => new HttplugClient(),
2322
]
2423
);

examples/collection_operations.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
'protocol' => 'http',
1919
],
2020
],
21-
'connection_timeout_seconds' => 2,
2221
'client' => new HttplugClient(),
2322
]
2423
);

examples/curation_operations.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
'protocol' => 'http',
1717
],
1818
],
19-
'connection_timeout_seconds' => 2,
2019
'client' => new HttplugClient(),
2120
]
2221
);

examples/info_operations.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
'protocol' => 'http',
1919
],
2020
],
21-
'connection_timeout_seconds' => 2,
2221
'client' => new HttplugClient(),
2322
]
2423
);

examples/keys_operations.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
'protocol' => 'http',
1717
],
1818
],
19-
'connection_timeout_seconds' => 2,
2019
'client' => new HttplugClient(),
2120
]
2221
);
@@ -125,8 +124,7 @@
125124
'port' => '8108',
126125
'protocol' => 'http',
127126
],
128-
],
129-
'connection_timeout_seconds' => 2,
127+
]
130128
]
131129
);
132130

src/ApiCall.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,7 @@ private function getRequestOptions(): array
274274
return [
275275
'headers' => [
276276
static::API_KEY_HEADER_NAME => $this->config->getApiKey(),
277-
],
278-
'connect_timeout' => $this->config->getConnectionTimeoutSeconds(),
277+
]
279278
];
280279
}
281280

src/Lib/Configuration.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ class Configuration
3131
*/
3232
private ?Node $nearestNode;
3333

34-
/**
35-
* @var float
36-
*/
37-
private float $connectionTimeoutSeconds;
38-
3934
/**
4035
* @var string
4136
*/
@@ -101,7 +96,6 @@ public function __construct(array $config)
10196
}
10297

10398
$this->apiKey = $config['api_key'] ?? '';
104-
$this->connectionTimeoutSeconds = (float)($config['connection_timeout_seconds'] ?? 1.0);
10599
$this->healthCheckIntervalSeconds = (int)($config['healthcheck_interval_seconds'] ?? 60);
106100
$this->numRetries = (float)($config['num_retries'] ?? 3);
107101
$this->retryIntervalSeconds = (float)($config['retry_interval_seconds'] ?? 1.0);
@@ -202,14 +196,6 @@ public function getRetryIntervalSeconds(): float
202196
return $this->retryIntervalSeconds;
203197
}
204198

205-
/**
206-
* @return float
207-
*/
208-
public function getConnectionTimeoutSeconds(): float
209-
{
210-
return $this->connectionTimeoutSeconds;
211-
}
212-
213199
/**
214200
* @return float|mixed
215201
*/

0 commit comments

Comments
 (0)