Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
de4265fa
Commit
de4265fa
authored
Dec 18, 2018
by
Javier Peletier
Committed by
Viktor Trón
Dec 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/network/simulation:commented out unreachable code-avoid vet errors (#18263)
parent
90ea542e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
example_test.go
swarm/network/simulation/example_test.go
+4
-7
No files found.
swarm/network/simulation/example_test.go
View file @
de4265fa
...
...
@@ -18,14 +18,8 @@ package simulation_test
import
(
"context"
"fmt"
"sync"
"time"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/network/simulation"
)
...
...
@@ -35,7 +29,8 @@ import (
func
ExampleSimulation_WaitTillHealthy
()
{
log
.
Error
(
"temporarily disabled as simulations.WaitTillHealthy cannot be trusted"
)
return
/* Commented out to avoid go vet errors/warnings
sim := simulation.New(map[string]simulation.ServiceFunc{
"bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) {
...
...
@@ -75,6 +70,8 @@ func ExampleSimulation_WaitTillHealthy() {
}
// continue with the test
*/
}
// Watch all peer events in the simulation network, buy receiving from a channel.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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