chore: bump golangci-lint and fix all linting issues (#21761)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user