Skip to content

Commit 5b1f2ab

Browse files
authored
fixed error copy (#2092)
1 parent bf73757 commit 5b1f2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/epp/runner/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func setupDatastore(ctx context.Context, epFactory datalayer.EndpointFactory, mo
395395
return nil, err
396396
}
397397
endpointPool.Selector = labelsMap
398-
_ = copy(endpointPool.TargetPorts, endpointTargetPorts)
398+
endpointPool.TargetPorts = append(endpointPool.TargetPorts, endpointTargetPorts...)
399399

400400
endpointPoolOption := datastore.WithEndpointPool(endpointPool)
401401
return datastore.NewDatastore(ctx, epFactory, modelServerMetricsPort, endpointPoolOption), nil

0 commit comments

Comments
 (0)