Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed May 8, 2024
1 parent df684db commit 0fd1f01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions components/prometheus/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (c *Collector) Collect() {
metric.collect()
return true
})

return true
})
}
Expand Down Expand Up @@ -89,6 +90,7 @@ func (c *Collector) Shutdown() {
metric.shutdown()
return true
})

return true
})
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/toolset/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func benchmarkIO(args []string) error {
ts := time.Now()

lastStatusTime := time.Now()
for i := 0; i < objectCnt; i++ {
for i := range objectCnt {
// one read operation and one write operation per cycle
batchWriter.Enqueue(newBenchmarkObject(store, writeDoneWaitGroup, iotago_tpkg.RandBytes(32), iotago_tpkg.RandBytes(size)))

Expand Down Expand Up @@ -154,7 +154,7 @@ func benchmarkCPU(args []string) error {
}
}()

for i := 0; i < numWorkers; i++ {
for range numWorkers {
wg.Add(1)
go func() {
defer wg.Done()
Expand Down
2 changes: 1 addition & 1 deletion pkg/toolset/pwd_hash.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:err113
package toolset

import (
Expand Down Expand Up @@ -128,7 +129,6 @@ func hashPasswordAndSalt(args []string) error {
}

if *outputJSONFlag {

result := struct {
Password string `json:"passwordHash"`
Salt string `json:"passwordSalt"`
Expand Down
1 change: 1 addition & 0 deletions pkg/toolset/toolset.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const (
)

const (
//nolint:gosec // there is no hardcoded password
passwordEnvKey = "IOTA_CORE_TOOL_PASSWORD"

// printStatusInterval is the interval for printing status messages.
Expand Down

0 comments on commit 0fd1f01

Please sign in to comment.