Browse Source

linting: apply misspell

pull/703/head
Zach Ramsay 7 years ago
committed by Ethan Buchman
parent
commit
1721543e5c
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      p2p/connection.go
  2. +1
    -1
      p2p/switch.go
  3. +1
    -1
      rpc/lib/server/parse_test.go
  4. +1
    -1
      types/validator.go

+ 1
- 1
p2p/connection.go View File

@ -569,7 +569,7 @@ type Channel struct {
func newChannel(conn *MConnection, desc ChannelDescriptor) *Channel { func newChannel(conn *MConnection, desc ChannelDescriptor) *Channel {
desc = desc.FillDefaults() desc = desc.FillDefaults()
if desc.Priority <= 0 { if desc.Priority <= 0 {
cmn.PanicSanity("Channel default priority must be a postive integer")
cmn.PanicSanity("Channel default priority must be a positive integer")
} }
return &Channel{ return &Channel{
conn: conn, conn: conn,


+ 1
- 1
p2p/switch.go View File

@ -511,7 +511,7 @@ func MakeConnectedSwitches(cfg *cfg.P2PConfig, n int, initSwitch func(int, *Swit
} }
// Connect2Switches will connect switches i and j via net.Pipe(). // Connect2Switches will connect switches i and j via net.Pipe().
// Blocks until a conection is established.
// Blocks until a connection is established.
// NOTE: caller ensures i and j are within bounds. // NOTE: caller ensures i and j are within bounds.
func Connect2Switches(switches []*Switch, i, j int) { func Connect2Switches(switches []*Switch, i, j int) {
switchI := switches[i] switchI := switches[i]


+ 1
- 1
rpc/lib/server/parse_test.go View File

@ -150,7 +150,7 @@ func TestParseRPC(t *testing.T) {
{`{"name": "john", "height": 22}`, 22, "john", false}, {`{"name": "john", "height": 22}`, 22, "john", false},
// defaults // defaults
{`{"name": "solo", "unused": "stuff"}`, 0, "solo", false}, {`{"name": "solo", "unused": "stuff"}`, 0, "solo", false},
// should fail - wrong types/lenght
// should fail - wrong types/length
{`["flew", 7]`, 0, "", true}, {`["flew", 7]`, 0, "", true},
{`[7,"flew",100]`, 0, "", true}, {`[7,"flew",100]`, 0, "", true},
{`{"name": -12, "height": "fred"}`, 0, "", true}, {`{"name": -12, "height": "fred"}`, 0, "", true},


+ 1
- 1
types/validator.go View File

@ -71,7 +71,7 @@ func (v *Validator) String() string {
} }
// Hash computes the unique ID of a validator with a given voting power. // Hash computes the unique ID of a validator with a given voting power.
// It exludes the Accum value, which changes with every round.
// It excludes the Accum value, which changes with every round.
func (v *Validator) Hash() []byte { func (v *Validator) Hash() []byte {
return wire.BinaryRipemd160(struct { return wire.BinaryRipemd160(struct {
Address data.Bytes Address data.Bytes


Loading…
Cancel
Save