Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Oct 4, 2024
1 parent a871cd7 commit a6dd8d2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions hydrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ func hydrateConfig(ctx context.Context, provider secretsProvider, v reflect.Valu
return fmt.Errorf("passed config must be struct, actual %s", v.Kind())
}

ga := &collector{}
ga.collectSecretFields(v, "config")

fields := ga.fields
c := &collector{}
c.collectSecretFields(v, "config")

g := &errgroup.Group{}
for _, field := range fields {
for _, field := range c.fields {
field := field

g.Go(func() error {
Expand Down

0 comments on commit a6dd8d2

Please sign in to comment.