Skip to content

Commit

Permalink
misspell error
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Trivedi <[email protected]>
  • Loading branch information
kushthedude committed Sep 1, 2020
1 parent 8046407 commit 0b5cede
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ linters-settings:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
disable:
- composites

linters:
disable-all: true
Expand All @@ -24,8 +26,8 @@ linters:
- govet
- errcheck
- deadcode
- misspell

# TODI(kushthedude) fix after vendor is migrated to go modules
# - misspell

service:
golangci-lint-version: 1.23.x # use the fixed version to not introduce new linters unexpectedly
Expand Down
4 changes: 2 additions & 2 deletions clusterloader2/pkg/measurement/util/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ type UsageDataPerContainer struct {

// ResourceConstraint specifies constraint on resources.
type ResourceConstraint struct {
CPUConstraint float64 `json: cpuConstraint`
MemoryConstraint uint64 `json: memoryConstraint`
CPUConstraint float64 `json:"cpuConstraint"`
MemoryConstraint uint64 `json:"memoryConstraint"`
}

// SingleContainerSummary is a resource usage summary for a single container.
Expand Down
2 changes: 1 addition & 1 deletion clusterloader2/pkg/prometheus/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
const allTargets = -1

type targetsResponse struct {
Data targetsData `json:"data""`
Data targetsData `json:"data"`
}

type targetsData struct {
Expand Down
6 changes: 3 additions & 3 deletions slo-monitor/src/monitors/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (q *NoStoreQueue) enqueueOrModifyItemLocked(key string, obj interface{}, op
func (q *NoStoreQueue) Add(obj interface{}) error {
key, err := keyFunc(obj)
if err != nil {
return cache.KeyError{obj, err}
return cache.KeyError{Obj: obj, Err: err}
}

defer q.cond.Broadcast()
Expand All @@ -105,7 +105,7 @@ func (q *NoStoreQueue) Update(obj interface{}) error {
func (q *NoStoreQueue) Delete(obj interface{}) error {
key, err := keyFunc(obj)
if err != nil {
return cache.KeyError{obj, err}
return cache.KeyError{Obj: obj, Err: err}
}

defer q.cond.Broadcast()
Expand Down Expand Up @@ -186,7 +186,7 @@ func (q *NoStoreQueue) Pop(process cache.PopProcessFunc) (interface{}, error) {
func (q *NoStoreQueue) AddIfNotPresent(obj interface{}) error {
key, err := keyFunc(obj)
if err != nil {
return cache.KeyError{obj, err}
return cache.KeyError{Obj: obj, Err: err}
}

defer q.cond.Broadcast()
Expand Down

0 comments on commit 0b5cede

Please sign in to comment.