Skip to content

Commit

Permalink
chore: delint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Dec 26, 2024
1 parent 5881b4c commit 11c9b35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ linters:
- errorlint
- funlen
- goconst
- gosec
- misspell
- unconvert
- prealloc
disable:
- gosec
- errcheck
- ineffassign

issues:
exclude-rules:
Expand Down
2 changes: 1 addition & 1 deletion consistent/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Ring[S medley.Service] struct {
hasher hasher[S]

// cache holds each individual service's nodes. This is used
// primarly to quickly rehash a ring, since we don't need to spend
// primarily to quickly rehash a ring, since we don't need to spend
// compute computing tokens that we've already computed.
cache medley.Map[S, nodes[S]]

Expand Down
2 changes: 1 addition & 1 deletion hashBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (hb *HashBuilder) WriteString(v string) *HashBuilder {
func (hb *HashBuilder) WriteUint8(v uint8) *HashBuilder {
if hb.err == nil {
var buf [1]byte
buf[0] = byte(v)
buf[0] = v
_, hb.err = hb.dst.Write(buf[:])
}

Expand Down

0 comments on commit 11c9b35

Please sign in to comment.