diff --git a/polkadot/node/service/src/lib.rs b/polkadot/node/service/src/lib.rs index da970f4129..f173bd2b41 100644 --- a/polkadot/node/service/src/lib.rs +++ b/polkadot/node/service/src/lib.rs @@ -309,7 +309,8 @@ pub struct NewFull { #[cfg(feature = "full-node")] impl NewFull { - fn with_client(self, func: impl FnOnce(C) -> Client) -> NewFull { + /// Convert the client type using the given `func`. + pub fn with_client(self, func: impl FnOnce(C) -> NC) -> NewFull { NewFull { client: func(self.client), task_manager: self.task_manager,