Skip to content

Commit

Permalink
Merge pull request #126 from libp2p/fix-staticcheck
Browse files Browse the repository at this point in the history
minor staticcheck fixes
  • Loading branch information
marten-seemann committed Apr 1, 2021
2 parents 73b4a7e + 792c695 commit f572d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p2p/protocol/internal/circuitv1-deprecated/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func TestUnspecificRelayDialFails(t *testing.T) {
}
}()

addr := ma.StringCast(fmt.Sprintf("/p2p-circuit"))
addr := ma.StringCast("/p2p-circuit")

rctx, rcancel := context.WithTimeout(ctx, time.Second)
defer rcancel()
Expand Down
2 changes: 1 addition & 1 deletion p2p/protocol/internal/circuitv1-deprecated/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (d *delimitedReader) ReadMsg(msg proto.Message) error {
}

if uint64(len(d.buf)) < mlen {
return errors.New("Message too large")
return errors.New("message too large")
}

buf := d.buf[:mlen]
Expand Down

0 comments on commit f572d19

Please sign in to comment.