Make new_client public and change its signature (#1808)

This commit is contained in:
Bastian Köcher
2020-10-12 19:55:09 +02:00
committed by GitHub
parent 25914bb5e1
commit 7699b09ea6
+2 -1
View File
@@ -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,