Skip to content
Snippets Groups Projects
Commit 7699b09e authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Make `new_client` public and change its signature (#1808)

parent 25914bb5
Branches
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment