From 7699b09ea653eb047269cf3e7f7c1b02bd077e35 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <bkchr@users.noreply.github.com>
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 da970f4129e..f173bd2b41c 100644
--- a/polkadot/node/service/src/lib.rs
+++ b/polkadot/node/service/src/lib.rs
@@ -309,7 +309,8 @@ pub struct NewFull<C> {
 
 #[cfg(feature = "full-node")]
 impl<C> NewFull<C> {
-	fn with_client(self, func: impl FnOnce(C) -> Client) -> NewFull<Client> {
+	/// Convert the client type using the given `func`.
+	pub fn with_client<NC>(self, func: impl FnOnce(C) -> NC) -> NewFull<NC> {
 		NewFull {
 			client: func(self.client),
 			task_manager: self.task_manager,
-- 
GitLab