diff --git a/.golangci.yaml b/.golangci.yaml index a5a3d84..5d902cc 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -8,13 +8,12 @@ linters: - errorlint - funlen - goconst - - gosec - misspell - unconvert - prealloc disable: + - gosec - errcheck - - ineffassign issues: exclude-rules: diff --git a/consistent/ring.go b/consistent/ring.go index 408cbb1..7677486 100644 --- a/consistent/ring.go +++ b/consistent/ring.go @@ -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]] diff --git a/hashBuilder.go b/hashBuilder.go index 86b9126..ef41e3c 100644 --- a/hashBuilder.go +++ b/hashBuilder.go @@ -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[:]) }