Skip to content

Commit

Permalink
Merge branch 'marcvdm-fix-sniffing' into 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Jun 17, 2019
2 parents e8d035b + 269b8fc commit b621e7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ $handler = new MockHandler([
'transfer_stats' => [
'total_time' => 100
],
'body' => fopen('somefile.json')
'body' => fopen('somefile.json'),
'effective_url' => 'localhost'
]);
$builder = ClientBuilder::create();
$builder->setHosts(['somehost']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private function sniffConnection(Connection $connection): bool
return true;
}

private function parseClusterState(string $transportSchema, array $nodeInfo): array
private function parseClusterState(string $transportSchema, $nodeInfo): array
{
$pattern = '/([^:]*):([0-9]+)/';
$schemaAddress = $transportSchema . '_address';
Expand Down
5 changes: 4 additions & 1 deletion src/Elasticsearch/Connections/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ public function ping(): bool
}
}

public function sniff(): array
/**
* @return array|\GuzzleHttp\Ring\Future\FutureArray
*/
public function sniff()
{
$options = [
'client' => [
Expand Down

0 comments on commit b621e7d

Please sign in to comment.