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
bd447bc2
Verified
Commit
bd447bc2
authored
1 year ago
by
Loris Moulin
Browse files
Options
Downloads
Patches
Plain Diff
chore: fixed return value of getters for hrmp channel
parent
44db0a66
Branches
gh-readonly-queue/master/pr-3366-ef6ac94f5218368fd89ce73493909bbfbc0eace8
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crates/configuration/src/hrmp_channel.rs
+13
-13
13 additions, 13 deletions
crates/configuration/src/hrmp_channel.rs
with
13 additions
and
13 deletions
crates/configuration/src/hrmp_channel.rs
+
13
−
13
View file @
bd447bc2
...
...
@@ -11,20 +11,20 @@ pub struct HrmpChannelConfig {
}
impl
HrmpChannelConfig
{
pub
fn
sender
(
&
self
)
->
&
ParaId
{
&
self
.sender
pub
fn
sender
(
&
self
)
->
ParaId
{
self
.sender
}
pub
fn
recipient
(
&
self
)
->
&
ParaId
{
&
self
.recipient
pub
fn
recipient
(
&
self
)
->
ParaId
{
self
.recipient
}
pub
fn
max_capacity
(
&
self
)
->
&
u32
{
&
self
.max_capacity
pub
fn
max_capacity
(
&
self
)
->
u32
{
self
.max_capacity
}
pub
fn
max_message_size
(
&
self
)
->
&
u32
{
&
self
.max_message_size
pub
fn
max_message_size
(
&
self
)
->
u32
{
self
.max_message_size
}
}
...
...
@@ -110,7 +110,7 @@ mod tests {
use
super
::
*
;
#[test]
fn
hrmp_config_builder_should_build_a_new_hrmp_config_correctly
()
{
fn
hrmp_
channel_
config_builder_should_build_a_new_hrmp_
channel_
config_correctly
()
{
let
hrmp_channel_config
=
HrmpChannelConfigBuilder
::
new
()
.with_sender
(
1000
)
.with_recipient
(
2000
)
...
...
@@ -118,9 +118,9 @@ mod tests {
.with_max_message_size
(
100
)
.build
();
assert_eq!
(
hrmp_channel_config
.sender
(),
&
1000
);
assert_eq!
(
hrmp_channel_config
.recipient
(),
&
2000
);
assert_eq!
(
hrmp_channel_config
.max_capacity
(),
&
50
);
assert_eq!
(
hrmp_channel_config
.max_message_size
(),
&
100
);
assert_eq!
(
hrmp_channel_config
.sender
(),
1000
);
assert_eq!
(
hrmp_channel_config
.recipient
(),
2000
);
assert_eq!
(
hrmp_channel_config
.max_capacity
(),
50
);
assert_eq!
(
hrmp_channel_config
.max_message_size
(),
100
);
}
}
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