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 #6686 from EOSIO/remove_queued_rpc_registration
Browse files Browse the repository at this point in the history
Remove queued HTTP handler registration
  • Loading branch information
spoonincode authored Jan 30, 2019
2 parents 0816381 + bfd5e23 commit faece37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/http_plugin/http_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,7 @@ namespace eosio {

void http_plugin::add_handler(const string& url, const url_handler& handler) {
ilog( "add api url: ${c}", ("c",url) );
app().post(priority::low, [=](){
my->url_handlers.insert(std::make_pair(url,handler));
});
my->url_handlers.insert(std::make_pair(url,handler));
}

void http_plugin::handle_exception( const char *api_name, const char *call_name, const string& body, url_response_callback cb ) {
Expand Down

0 comments on commit faece37

Please sign in to comment.