Skip to content

Commit fe8c236

Browse files
committed
Wait for the future response
1 parent e8d035b commit fe8c236

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Elasticsearch/Connections/Connection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ public function sniff(): array
457457
]
458458
];
459459

460-
return $this->performRequest('GET', '/_nodes/', null, null, $options);
460+
$future = $this->performRequest('GET', '/_nodes/', null, null, $options);
461+
462+
return $future->wait();
461463
}
462464

463465
public function isAlive(): bool

0 commit comments

Comments
 (0)