Skip to content

Commit

Permalink
Removing ToSlice()
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Dec 1, 2020
1 parent bf166b6 commit dcfce4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metricbeat/module/logstash/node/data_xpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func makeClusterToPipelinesMap(pipelines []logstash.PipelineState, overrideClust
clusterUUIDs.Add("")
}

for _, clusterUUID := range clusterUUIDs.ToSlice() {
for _, clusterUUID := range clusterUUIDs {
clusterPipelines := clusterToPipelinesMap[clusterUUID]
if clusterPipelines == nil {
clusterToPipelinesMap[clusterUUID] = []logstash.PipelineState{}
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/logstash/node_stats/data_xpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func makeClusterToPipelinesMap(pipelines []PipelineStats, overrideClusterUUID st
clusterUUIDs.Add("")
}

for _, clusterUUID := range clusterUUIDs.ToSlice() {
for _, clusterUUID := range clusterUUIDs {
clusterPipelines := clusterToPipelinesMap[clusterUUID]
if clusterPipelines == nil {
clusterToPipelinesMap[clusterUUID] = []PipelineStats{}
Expand Down

0 comments on commit dcfce4d

Please sign in to comment.