1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-07 18:31:13 +00:00

Adding validate phase to the CI

Adds a validate phase to the CI which runs a linter. Also fixes
linter issues discovered during the initial run
This commit is contained in:
Michael Bolot
2022-10-14 15:21:17 -05:00
parent 7e4a51bda0
commit b73cc57b20
15 changed files with 128 additions and 37 deletions

View File

@@ -170,17 +170,16 @@ func (p *ParallelPartitionLister) feeder(ctx context.Context, state listState, l
}
capacity = 0
return nil
} else {
result <- list.Objects
capacity -= len(list.Objects)
if list.Continue == "" {
return nil
}
// loop again and get more data
state.Continue = list.Continue
state.PartitionName = partition.Name()
state.Offset = 0
}
result <- list.Objects
capacity -= len(list.Objects)
if list.Continue == "" {
return nil
}
// loop again and get more data
state.Continue = list.Continue
state.PartitionName = partition.Name()
state.Offset = 0
}
})
}