mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: fix linter
This commit is contained in:
parent
6e85f25f6c
commit
51881bf76f
2 changed files with 7 additions and 7 deletions
12
les/peer.go
12
les/peer.go
|
|
@ -637,12 +637,12 @@ type clientPeer struct {
|
|||
|
||||
// responseLock ensures that responses are queued in the same order as
|
||||
// RequestProcessed is called
|
||||
responseLock sync.Mutex
|
||||
server bool
|
||||
invalidCount uint32 // Counter the invalid request the client peer has made.
|
||||
responseCount uint64 // Counter to generate an unique id for request processing.
|
||||
errCh chan error
|
||||
fcClient *flowcontrol.ClientNode // Server side mirror token bucket.
|
||||
responseLock sync.Mutex
|
||||
server bool
|
||||
invalidCount uint32 // Counter the invalid request the client peer has made.
|
||||
responseCount uint64 // Counter to generate an unique id for request processing.
|
||||
errCh chan error
|
||||
fcClient *flowcontrol.ClientNode // Server side mirror token bucket.
|
||||
}
|
||||
|
||||
func newClientPeer(version int, network uint64, p *p2p.Peer, rw p2p.MsgReadWriter) *clientPeer {
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ func newClientServerEnv(t *testing.T, blocks int, protocol int, callback indexer
|
|||
)
|
||||
if connect {
|
||||
done := make(chan struct{})
|
||||
client.syncDone = func() {close(done)}
|
||||
client.syncDone = func() { close(done) }
|
||||
cpeer, speer, err = newTestPeerPair("peer", protocol, server, client)
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to connect testing peers %v", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue