Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
nodes
rust
Duniter v2S
Commits
4f41a026
Commit
4f41a026
authored
3 months ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Revert "review: test code, not dead code"
This reverts commit
922df964
.
parent
922df964
No related branches found
No related tags found
1 merge request
!316
Resolve "Add RPC method to list peers"
Pipeline
#39931
passed
3 months ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
node/src/endpoint_gossip/handler.rs
+1
-2
1 addition, 2 deletions
node/src/endpoint_gossip/handler.rs
with
1 addition
and
2 deletions
node/src/endpoint_gossip/handler.rs
+
1
−
2
View file @
4f41a026
...
@@ -62,7 +62,7 @@ pub enum DuniterPeeringEvent {
...
@@ -62,7 +62,7 @@ pub enum DuniterPeeringEvent {
pub
enum
DuniterPeeringCommand
{
pub
enum
DuniterPeeringCommand
{
/// Send a peering to a peer.
/// Send a peering to a peer.
#[
cfg(test)]
#[
allow(dead_code)]
// only used in tests for now, maybe in the future by RPC
SendPeering
(
PeerId
,
Peering
),
SendPeering
(
PeerId
,
Peering
),
}
}
...
@@ -231,7 +231,6 @@ where
...
@@ -231,7 +231,6 @@ where
async
fn
handle_command
(
&
mut
self
,
cmd
:
DuniterPeeringCommand
)
{
async
fn
handle_command
(
&
mut
self
,
cmd
:
DuniterPeeringCommand
)
{
match
cmd
{
match
cmd
{
#[cfg(test)]
DuniterPeeringCommand
::
SendPeering
(
peer
,
peering
)
=>
{
DuniterPeeringCommand
::
SendPeering
(
peer
,
peering
)
=>
{
debug!
(
target
:
"duniter-libp2p"
,
"[{}]Sending COMMANDED self peering to {}"
,
self
.network
.local_peer_id
(),
peer
);
debug!
(
target
:
"duniter-libp2p"
,
"[{}]Sending COMMANDED self peering to {}"
,
self
.network
.local_peer_id
(),
peer
);
match
self
match
self
...
...
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