mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
p2p: Fix formatting
This commit is contained in:
parent
18aeb9c436
commit
b4a58a110d
2 changed files with 4 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ func TestGetSetClientInfo(t *testing.T) {
|
||||||
|
|
||||||
// Without build info
|
// Without build info
|
||||||
|
|
||||||
client := Client(Client{&name, &ver, nil})
|
client := Client{&name, &ver, nil}
|
||||||
var r Record
|
var r Record
|
||||||
r.Set(client)
|
r.Set(client)
|
||||||
|
|
||||||
|
|
@ -101,7 +101,7 @@ func TestGetSetClientInfo(t *testing.T) {
|
||||||
|
|
||||||
// With build info
|
// With build info
|
||||||
|
|
||||||
clientWithBuild := Client(Client{&name, &ver, &build})
|
clientWithBuild := Client{&name, &ver, &build}
|
||||||
var r2 Record
|
var r2 Record
|
||||||
r2.Set(clientWithBuild)
|
r2.Set(clientWithBuild)
|
||||||
|
|
||||||
|
|
@ -117,7 +117,7 @@ func TestDecodingENRWith7636(t *testing.T) {
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
record, _, err := decodeRecord(rlp.NewStream(bytes.NewReader(b), 0))
|
record, _, err := decodeRecord(rlp.NewStream(bytes.NewReader(b), 0))
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ func (v *IPv4) DecodeRLP(s *rlp.Stream) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client is the "client" key, which holds the EIP-7636 client info.
|
// Client is the "client" key, which holds the EIP-7636 client info.
|
||||||
type Client [3]*string;
|
type Client [3]*string
|
||||||
|
|
||||||
func (v Client) ENRKey() string { return "client" }
|
func (v Client) ENRKey() string { return "client" }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue