@@ -66,7 +66,7 @@ macro_rules! define_jsonrpc_bitreq_client {
6666
6767 /// Client implements a JSON-RPC client for the Bitcoin Core daemon or compatible APIs.
6868 pub struct Client {
69- inner: jsonrpc:: client_sync :: Client ,
69+ inner: jsonrpc:: client :: Client ,
7070 }
7171
7272 impl fmt:: Debug for Client {
@@ -81,12 +81,12 @@ macro_rules! define_jsonrpc_bitreq_client {
8181 impl Client {
8282 /// Creates a client to a bitcoind JSON-RPC server without authentication.
8383 pub fn new( url: & str ) -> Self {
84- let transport = jsonrpc:: http:: bitreq_http_sync :: Builder :: new( )
84+ let transport = jsonrpc:: http:: bitreq_http :: Builder :: new( )
8585 . url( url)
8686 . expect( "jsonrpc v0.19, this function does not error" )
8787 . timeout( std:: time:: Duration :: from_secs( 60 ) )
8888 . build( ) ;
89- let inner = jsonrpc:: client_sync :: Client :: with_transport( transport) ;
89+ let inner = jsonrpc:: client :: Client :: with_transport( transport) ;
9090
9191 Self { inner }
9292 }
@@ -98,13 +98,13 @@ macro_rules! define_jsonrpc_bitreq_client {
9898 }
9999 let ( user, pass) = auth. get_user_pass( ) ?;
100100
101- let transport = jsonrpc:: http:: bitreq_http_sync :: Builder :: new( )
101+ let transport = jsonrpc:: http:: bitreq_http :: Builder :: new( )
102102 . url( url)
103103 . expect( "jsonrpc v0.19, this function does not error" )
104104 . timeout( std:: time:: Duration :: from_secs( 60 ) )
105105 . basic_auth( user. unwrap( ) , pass)
106106 . build( ) ;
107- let inner = jsonrpc:: client_sync :: Client :: with_transport( transport) ;
107+ let inner = jsonrpc:: client :: Client :: with_transport( transport) ;
108108
109109 Ok ( Self { inner } )
110110 }
0 commit comments