Skip to content

Commit 96eb2d5

Browse files
authored
feat(main): fix go func (#9)
1 parent e1ba666 commit 96eb2d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ func (c *Reconciler) syncEndpoint(ctx context.Context, cep *v1beta1.ClusterEndpo
234234
func healthyCheck(ctx context.Context, host string, cep *v1beta1.ClusterEndpoint) error {
235235
pg, _ := errgroup.WithContext(ctx)
236236
for _, p := range cep.Spec.Ports {
237+
p := p
237238
pg.Go(func() error {
238239
if p.TimeoutSeconds == 0 {
239240
p.TimeoutSeconds = 1

0 commit comments

Comments
 (0)