From 66a34176aa3a658300297c37a9a651dce86d1b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Miko=C5=82ajczyk?= Date: Mon, 9 Jan 2023 12:52:28 +0100 Subject: [PATCH] Don't expose client --- aleph-client/src/connections.rs | 3 +-- aleph-client/src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aleph-client/src/connections.rs b/aleph-client/src/connections.rs index b21c1b54f8..61fbdb7496 100644 --- a/aleph-client/src/connections.rs +++ b/aleph-client/src/connections.rs @@ -339,8 +339,7 @@ impl Connection { } } - /// Casts self to the underlying RPC client. - pub fn as_client(&self) -> &SubxtClient { + pub(super) fn as_client(&self) -> &SubxtClient { &self.client } } diff --git a/aleph-client/src/lib.rs b/aleph-client/src/lib.rs index 74d232850f..912f985b0f 100644 --- a/aleph-client/src/lib.rs +++ b/aleph-client/src/lib.rs @@ -52,8 +52,7 @@ pub type Client = OnlineClient; /// An alias for a hash type. pub type BlockHash = H256; -/// An alias for an RPC client type. -pub type SubxtClient = OnlineClient; +type SubxtClient = OnlineClient; pub use connections::{ Connection, ConnectionApi, RootConnection, SignedConnection, SignedConnectionApi, SudoCall,