mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/simulations: revert Simulation.Run from master
https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904
This commit is contained in:
parent
a40801dead
commit
621e2b64ee
1 changed files with 3 additions and 5 deletions
|
|
@ -49,12 +49,10 @@ func (s *Simulation) Run(ctx context.Context, step *Step) (result *StepResult) {
|
|||
defer stop()
|
||||
|
||||
// perform the action
|
||||
if step.Action != nil {
|
||||
if err := step.Action(ctx); err != nil {
|
||||
result.Error = err
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// wait for all node expectations to either pass, error or timeout
|
||||
nodes := make(map[enode.ID]struct{}, len(step.Expect.Nodes))
|
||||
|
|
|
|||
Loading…
Reference in a new issue