Expose RpcClient and RestClient interfaces as pub
[rust-lightning] / lightning-block-sync / src / rest.rs
index 3c2e76e23d7d5ee2eebd4a957185a34fef629583..3aff104d5546fe520407795d40e10307192a91ec 100644 (file)
@@ -24,7 +24,7 @@ impl RestClient {
        }
 
        /// Requests a resource encoded in `F` format and interpreted as type `T`.
-       async fn request_resource<F, T>(&mut self, resource_path: &str) -> std::io::Result<T>
+       pub async fn request_resource<F, T>(&mut self, resource_path: &str) -> std::io::Result<T>
        where F: TryFrom<Vec<u8>, Error = std::io::Error> + TryInto<T, Error = std::io::Error> {
                let host = format!("{}:{}", self.endpoint.host(), self.endpoint.port());
                let uri = format!("{}/{}", self.endpoint.path().trim_end_matches("/"), resource_path);