Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
data-wallet-prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
WIDE
data-wallet-prototype
Commits
dcfa4ede
Commit
dcfa4ede
authored
6 months ago
by
KENFACK Cyrille
Browse files
Options
Downloads
Patches
Plain Diff
fix launching node
parent
02b7f795
Branches
launch-node
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/network/nm/mod.rs
+14
-7
14 additions, 7 deletions
src/network/nm/mod.rs
with
14 additions
and
7 deletions
src/network/nm/mod.rs
+
14
−
7
View file @
dcfa4ede
...
...
@@ -49,12 +49,6 @@ impl NodeManagerConnector {
Some
(
false
),
Some
(
true
),
);
{
let
node
=
node
.clone
();
tokio
::
spawn
(
async
move
{
node
.run
()
.await
;
});
}
info!
(
"NodeManagerConnector: Initialised as {}"
,
node
.node.id
.to_base58
());
...
...
@@ -140,9 +134,22 @@ mod tests {
#[tokio::test]
async
fn
connector_discovers
()
{
let
mut
a
=
NodeManagerConnector
::
new
();
{
let
node
=
a
.node
.clone
();
tokio
::
spawn
(
async
move
{
node
.run
()
.await
;
});
}
let
mut
b
=
NodeManagerConnector
::
new
();
{
let
node
=
b
.node
.clone
();
tokio
::
spawn
(
async
move
{
node
.run
()
.await
;
});
}
sleep
(
Duration
::
from_secs
(
10
))
.await
;
sleep
(
Duration
::
from_secs
(
5
))
.await
;
let
sample_a
=
a
.sample_peer
()
.await
;
let
sample_b
=
b
.sample_peer
()
.await
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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