Skip to content

Commit

Permalink
Update scripts/p2p/common_p2p.go
Browse files Browse the repository at this point in the history
Co-authored-by: JimboJ <[email protected]>
  • Loading branch information
EclesioMeloJunior and jimjbrettj authored Aug 26, 2024
1 parent 4aefc43 commit 7d2e59d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/p2p/common_p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ func parsePeerAddress(arg string) peer.AddrInfo {
return *p
}

var (
errZeroLength = errors.New("zero length")
)
var errZeroLength = errors.New("zero length")

func ReadStream(stream lip2pnetwork.Stream) ([]byte, error) {
responseBuf := make([]byte, network.MaxBlockResponseSize)
Expand Down

0 comments on commit 7d2e59d

Please sign in to comment.