Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
e3db9f03
Unverified
Commit
e3db9f03
authored
Oct 12, 2020
by
Bastian Köcher
Committed by
GitHub
Oct 12, 2020
Browse files
Make `new_client` public and change its signature (#1808)
parent
15ba4efd
Pipeline
#110382
passed with stages
in 20 minutes and 39 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
node/service/src/lib.rs
View file @
e3db9f03
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment