Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zombienet-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
zombienet-sdk
Commits
46cac3ad
Unverified
Commit
46cac3ad
authored
1 year ago
by
s0me0ne-unkn0wn
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix builder pattern to allow real closures (#171)
parent
9a63f9b9
Branches
Branches containing commit
No related merge requests found
Pipeline
#449082
passed with stage
in 12 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crates/configuration/src/network.rs
+4
-4
4 additions, 4 deletions
crates/configuration/src/network.rs
with
4 additions
and
4 deletions
crates/configuration/src/network.rs
+
4
−
4
View file @
46cac3ad
...
...
@@ -324,7 +324,7 @@ impl NetworkConfigBuilder<Initial> {
/// Set the relay chain using a nested [`RelaychainConfigBuilder`].
pub
fn
with_relaychain
(
self
,
f
:
fn
(
f
:
impl
FnOnce
(
RelaychainConfigBuilder
<
relaychain
::
Initial
>
,
)
->
RelaychainConfigBuilder
<
relaychain
::
WithAtLeastOneNode
>
,
)
->
NetworkConfigBuilder
<
WithRelaychain
>
{
...
...
@@ -350,7 +350,7 @@ impl NetworkConfigBuilder<WithRelaychain> {
/// Set the global settings using a nested [`GlobalSettingsBuilder`].
pub
fn
with_global_settings
(
self
,
f
:
fn
(
GlobalSettingsBuilder
)
->
GlobalSettingsBuilder
,
f
:
impl
FnOnce
(
GlobalSettingsBuilder
)
->
GlobalSettingsBuilder
,
)
->
Self
{
match
f
(
GlobalSettingsBuilder
::
new
())
.build
()
{
Ok
(
global_settings
)
=>
Self
::
transition
(
...
...
@@ -372,7 +372,7 @@ impl NetworkConfigBuilder<WithRelaychain> {
/// Add a parachain using a nested [`ParachainConfigBuilder`].
pub
fn
with_parachain
(
self
,
f
:
fn
(
f
:
impl
FnOnce
(
ParachainConfigBuilder
<
parachain
::
states
::
Initial
,
parachain
::
states
::
Bootstrap
>
,
)
->
ParachainConfigBuilder
<
parachain
::
states
::
WithAtLeastOneCollator
,
...
...
@@ -399,7 +399,7 @@ impl NetworkConfigBuilder<WithRelaychain> {
/// Add an HRMP channel using a nested [`HrmpChannelConfigBuilder`].
pub
fn
with_hrmp_channel
(
self
,
f
:
fn
(
f
:
impl
FnOnce
(
HrmpChannelConfigBuilder
<
hrmp_channel
::
Initial
>
,
)
->
HrmpChannelConfigBuilder
<
hrmp_channel
::
WithRecipient
>
,
)
->
Self
{
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment