From 3119899551d07ed39e1211578e6d7c2d6aa2af10 Mon Sep 17 00:00:00 2001 From: thaddeus <79182310+flomang@users.noreply.github.com> Date: Wed, 7 Sep 2022 08:51:36 -0600 Subject: [PATCH] The foreign_rpc and owner_rpc auto generated helper modules should be made public. (#3734) * Minor update for foreign api docs. Peers seems to be no longer needed as an arg in the grin_api::Foreign::new. * This changes foreign_rpc and owner_rpc modules to public so the helper modules for the rpc clients can be accessible in external projects. --- api/src/foreign.rs | 1 - api/src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/foreign.rs b/api/src/foreign.rs index 6de2fdb20..f45b9ffdc 100644 --- a/api/src/foreign.rs +++ b/api/src/foreign.rs @@ -59,7 +59,6 @@ where /// # Arguments /// * `chain` - A non-owning reference of the chain. /// * `tx_pool` - A non-owning reference of the transaction pool. - /// * `peers` - A non-owning reference of the peers. /// * `sync_state` - A non-owning reference of the `sync_state`. /// /// # Returns diff --git a/api/src/lib.rs b/api/src/lib.rs index 03c40868f..e9f1af4ae 100644 --- a/api/src/lib.rs +++ b/api/src/lib.rs @@ -33,11 +33,11 @@ mod web; pub mod auth; pub mod client; mod foreign; -mod foreign_rpc; +pub mod foreign_rpc; mod handlers; pub mod json_rpc; mod owner; -mod owner_rpc; +pub mod owner_rpc; mod rest; mod router; pub mod types;