chore: bump golangci-lint and fix all linting issues (#21761)

This commit is contained in:
Julien Robert
2024-09-16 19:11:19 +00:00
committed by GitHub
parent 52ba264c80
commit cbdfd9bdfa
186 changed files with 114 additions and 455 deletions
-3
View File
@@ -89,7 +89,6 @@ func (s *Server[T]) Start(ctx context.Context) error {
g, ctx := errgroup.WithContext(ctx)
for _, mod := range s.components {
mod := mod
g.Go(func() error {
return mod.Start(ctx)
})
@@ -110,7 +109,6 @@ func (s *Server[T]) Stop(ctx context.Context) error {
g, ctx := errgroup.WithContext(ctx)
for _, mod := range s.components {
mod := mod
g.Go(func() error {
return mod.Stop(ctx)
})
@@ -198,7 +196,6 @@ func (s *Server[T]) Init(appI AppI[T], cfg map[string]any, logger log.Logger) er
var components []ServerComponent[T]
for _, mod := range s.components {
mod := mod
if err := mod.Init(appI, cfg, logger); err != nil {
return err
}