Unverified Commit e3db9f03 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 15ba4efd
Pipeline #110382 passed with stages
in 20 minutes and 39 seconds
......@@ -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,
Supports Markdown
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