Browse Source

Fix capitalization lint.

pull/8106/head
M. J. Fromberger 3 years ago
parent
commit
6595f9cbd8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      internal/p2p/pex/reactor.go
  2. +1
    -1
      internal/p2p/pex/reactor_test.go

+ 1
- 1
internal/p2p/pex/reactor.go View File

@ -259,7 +259,7 @@ func (r *Reactor) handlePexMessage(ctx context.Context, envelope *p2p.Envelope)
// Verify that the response does not exceed the safety limit.
if len(msg.Addresses) > maxAddresses {
return 0, fmt.Errorf("Peer sent too many addresses (%d > maxiumum %d)",
return 0, fmt.Errorf("peer sent too many addresses (%d > maxiumum %d)",
len(msg.Addresses), maxAddresses)
}


+ 1
- 1
internal/p2p/pex/reactor_test.go View File

@ -189,7 +189,7 @@ func TestReactorErrorsOnReceivingTooManyPeers(t *testing.T) {
peerErr := <-r.pexErrCh
require.Error(t, peerErr.Err)
require.Empty(t, r.pexOutCh)
require.Contains(t, peerErr.Err.Error(), "Peer sent too many addresses")
require.Contains(t, peerErr.Err.Error(), "peer sent too many addresses")
require.Equal(t, peer.NodeID, peerErr.NodeID)
}


Loading…
Cancel
Save