Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8886 from EOSIO/feature/trace-get-block-async-dev…
Browse files Browse the repository at this point in the history
…elop

use http async api support for Trace API get_block [develop]
  • Loading branch information
b1bart authored Mar 26, 2020
2 parents 6d887e1 + 0c65187 commit 0f8e58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/trace_api_plugin/trace_api_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ struct trace_api_rpc_plugin_impl : public std::enable_shared_from_this<trace_api
auto& http = app().get_plugin<http_plugin>();
fc::microseconds max_response_time = http.get_max_response_time();

http.add_handler("/v1/trace_api/get_block",
http.add_async_handler("/v1/trace_api/get_block",
[wthis=weak_from_this(), max_response_time](std::string, std::string body, url_response_callback cb)
{
auto that = wthis.lock();
Expand Down

0 comments on commit 0f8e58f

Please sign in to comment.