From 885aa14ed1361458af0941cd65f48d0198c6023f Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Tue, 17 Jun 2014 13:16:57 -0400 Subject: [PATCH] Add missing synchronous call overload to json_connection --- include/fc/rpc/json_connection.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/fc/rpc/json_connection.hpp b/include/fc/rpc/json_connection.hpp index b666a74..9b4adc7 100644 --- a/include/fc/rpc/json_connection.hpp +++ b/include/fc/rpc/json_connection.hpp @@ -107,6 +107,14 @@ namespace fc { namespace rpc { const variant& a7 ); + template + Result call( const fc::string& method, + const variants& args, + microseconds timeout = microseconds::maximum()) + { + return async_call( method, args ).wait(timeout).as(); + } + template Result call( const fc::string& method, const variant& a1,