mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +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
|
||||
|
||||
client := Client(Client{&name, &ver, nil})
|
||||
client := Client{&name, &ver, nil}
|
||||
var r Record
|
||||
r.Set(client)
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ func TestGetSetClientInfo(t *testing.T) {
|
|||
|
||||
// With build info
|
||||
|
||||
clientWithBuild := Client(Client{&name, &ver, &build})
|
||||
clientWithBuild := Client{&name, &ver, &build}
|
||||
var r2 Record
|
||||
r2.Set(clientWithBuild)
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ func TestDecodingENRWith7636(t *testing.T) {
|
|||
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return;
|
||||
return
|
||||
}
|
||||
|
||||
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.
|
||||
type Client [3]*string;
|
||||
type Client [3]*string
|
||||
|
||||
func (v Client) ENRKey() string { return "client" }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue