Skip to content

Commit

Permalink
Merge branch 'marcvdm-fix-sniffing'
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Jun 17, 2019
2 parents b99c41b + 269b8fc commit f90ca0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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 f90ca0e

Please sign in to comment.