mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/simulations: return already connected error from Load function
This commit is contained in:
parent
dd75dde1a7
commit
3f5f1375b2
1 changed files with 1 additions and 2 deletions
|
|
@ -22,7 +22,6 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
|
@ -792,7 +791,7 @@ func (net *Network) Load(snap *Snapshot) error {
|
|||
//so it would result in the snapshot `Load` to fail
|
||||
continue
|
||||
}
|
||||
if err := net.Connect(conn.One, conn.Other); err != nil && !strings.Contains(err.Error(), "already connected") {
|
||||
if err := net.Connect(conn.One, conn.Other); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue