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

minor staticcheck fixes #126

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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