Skip to content

Commit

Permalink
fix snippet parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaaym committed Oct 8, 2018
1 parent 0d27f61 commit cdda689
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Bigtable/src/DataClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,14 @@ public function sampleRowKeys(array $options = [])
$options + $this->options
);

return (function () use ($stream) {
$callable = (function () use ($stream) {
foreach ($stream->readAll() as $response) {
yield [
'rowKey' => $response->getRowKey(),
'offset' => $response->getOffsetBytes()
];
};
})();
});
return $callable();
}
}

0 comments on commit cdda689

Please sign in to comment.