Skip to content

Commit

Permalink
Wait for the future response
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvdm committed Jun 14, 2019
1 parent e8d035b commit fe8c236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Elasticsearch/Connections/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@ public function sniff(): array
]
];

return $this->performRequest('GET', '/_nodes/', null, null, $options);
$future = $this->performRequest('GET', '/_nodes/', null, null, $options);

return $future->wait();
}

public function isAlive(): bool
Expand Down

0 comments on commit fe8c236

Please sign in to comment.