Add missing synchronous call overload to json_connection

This commit is contained in:
Nathan Hourt 2014-06-17 13:16:57 -04:00
parent 653fd2ca8b
commit 885aa14ed1

View file

@ -107,6 +107,14 @@ namespace fc { namespace rpc {
const variant& a7
);
template<typename Result>
Result call( const fc::string& method,
const variants& args,
microseconds timeout = microseconds::maximum())
{
return async_call( method, args ).wait(timeout).as<Result>();
}
template<typename Result>
Result call( const fc::string& method,
const variant& a1,