[#1459] .golangci.yml: Add intrange linter, fix issues
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
d28a5d2d7a
commit
7ac0852364
15 changed files with 24 additions and 23 deletions
|
@ -29,7 +29,7 @@ func PopulateWithObjects(
|
|||
) {
|
||||
digits := "0123456789"
|
||||
|
||||
for i := uint(0); i < count; i++ {
|
||||
for range count {
|
||||
obj := factory()
|
||||
|
||||
id := []byte(fmt.Sprintf(
|
||||
|
@ -59,7 +59,7 @@ func PopulateWithBigObjects(
|
|||
count uint,
|
||||
factory func() *objectSDK.Object,
|
||||
) {
|
||||
for i := uint(0); i < count; i++ {
|
||||
for range count {
|
||||
group.Go(func() error {
|
||||
if err := populateWithBigObject(ctx, db, factory); err != nil {
|
||||
return fmt.Errorf("couldn't put a big object: %w", err)
|
||||
|
@ -154,7 +154,7 @@ func PopulateGraveyard(
|
|||
wg := &sync.WaitGroup{}
|
||||
wg.Add(int(count))
|
||||
|
||||
for i := uint(0); i < count; i++ {
|
||||
for range count {
|
||||
obj := factory()
|
||||
|
||||
prm := meta.PutPrm{}
|
||||
|
@ -226,7 +226,7 @@ func PopulateLocked(
|
|||
wg := &sync.WaitGroup{}
|
||||
wg.Add(int(count))
|
||||
|
||||
for i := uint(0); i < count; i++ {
|
||||
for range count {
|
||||
defer wg.Done()
|
||||
|
||||
obj := factory()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue