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

Commit

Permalink
Handle execution return value
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat committed Nov 24, 2020
1 parent d2e56e5 commit 6de50ac
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 6de50ac

Please sign in to comment.