Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Henrique Spanoudis Matulis <[email protected]>
  • Loading branch information
hsmatulisgoogle committed Feb 27, 2025
1 parent ee8cfc1 commit ac4f2d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/frontend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func main() {
level.Info(logger).Log("msg", "Starting web server for metrics", "listen", *listenAddress)
return server.ListenAndServe()
}, func(error) {
//nolint:fatcontext
ctx, cancel = context.WithTimeout(ctx, time.Minute)
if err := server.Shutdown(ctx); err != nil {
//nolint:errcheck
Expand Down
2 changes: 1 addition & 1 deletion cmd/rule-evaluator/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func compareWarningsEquality(w1, w2 storage.Warnings) bool {
if len(w1) != len(w2) {
return false
}
for i := range len(w1) {
for i := range w1 {
if w1[i] != w2[i] && w1[i].Error() != w2[i].Error() {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ func (b *batch) empty() bool {

// send the accumulated samples to their respective projects. It returns once all
// requests have completed and notifies the pending shards.
func (b batch) send(
func (b *batch) send(
ctx context.Context,
sendOne func(context.Context, *monitoring_pb.CreateTimeSeriesRequest, ...gax.CallOption) error,
) {
Expand Down

0 comments on commit ac4f2d6

Please sign in to comment.