Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

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 authored Apr 1, 2021
2 parents c0edc67 + 398636c commit 4ab4816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 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 4ab4816

Please sign in to comment.