Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from torquem-ch/kv_seek_async_asio
Browse files Browse the repository at this point in the history
kv_seek_async_asio: handle execution return value
  • Loading branch information
tjayrush authored Nov 25, 2020
2 parents 30edb48 + 6de50ac commit 68abda1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/kv_seek_async_asio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ int main(int argc, char* argv[]) {

asio::io_service service;

service.post(
[table_name, target, seek_key, timeout] () {
kv_seek_async(table_name, target, seek_key, timeout);
int rv;
service.post([&] () {
rv = kv_seek_async(table_name, target, seek_key, timeout);
});

service.run();

return 0;
return rv;
}

0 comments on commit 68abda1

Please sign in to comment.