From 7699b09ea653eb047269cf3e7f7c1b02bd077e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Mon, 12 Oct 2020 19:55:09 +0200 Subject: [PATCH] Make `new_client` public and change its signature (#1808) --- polkadot/node/service/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,