Skip to content

Commit

Permalink
Avoid shallow copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Nov 14, 2023
1 parent f75a35f commit 5cca552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/otelcol/exporter/loadbalancing/loadbalancing.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (args *KubernetesResolver) SetToDefault() {
func (k8sSvcResolver *KubernetesResolver) Convert() loadbalancingexporter.K8sSvcResolver {
return loadbalancingexporter.K8sSvcResolver{
Service: k8sSvcResolver.Service,
Ports: k8sSvcResolver.Ports,
Ports: append([]int32{}, k8sSvcResolver.Ports...),
}
}

Expand Down

0 comments on commit 5cca552

Please sign in to comment.