mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 09:31:02 +00:00
Make new_client public and change its signature (#1808)
This commit is contained in:
@@ -309,7 +309,8 @@ pub struct NewFull<C> {
|
|||||||
|
|
||||||
#[cfg(feature = "full-node")]
|
#[cfg(feature = "full-node")]
|
||||||
impl<C> NewFull<C> {
|
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 {
|
NewFull {
|
||||||
client: func(self.client),
|
client: func(self.client),
|
||||||
task_manager: self.task_manager,
|
task_manager: self.task_manager,
|
||||||
|
|||||||
Reference in New Issue
Block a user