Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
martint committed Oct 2, 2019
1 parent 6f833e0 commit 4d0dae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public List<String> getIndices(ElasticsearchTableDescription tableDescription)
.collect(toImmutableList());
}

public ClusterSearchShardsResponse getSearchShards(String index, ElasticsearchTableDescription tableDescription)
public ClusterSearchShardsResponse getSearchShards(String index)
{
verifyNotNull(client, "client is null");
return getSearchShardsResponse(client, new ClusterSearchShardsRequest(index));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ConnectorSplitSource getSplits(ConnectorTransactionHandle transactionHand
List<String> indices = client.getIndices(tableDescription);
ImmutableList.Builder<ConnectorSplit> splits = ImmutableList.builder();
for (String index : indices) {
ClusterSearchShardsResponse response = client.getSearchShards(index, tableDescription);
ClusterSearchShardsResponse response = client.getSearchShards(index);
DiscoveryNode[] nodes = response.getNodes();
for (ClusterSearchShardsGroup group : response.getGroups()) {
int nodeIndex = group.getShardId().getId() % nodes.length;
Expand Down

0 comments on commit 4d0dae6

Please sign in to comment.