Skip to content

Commit

Permalink
[Connectors API] Remove unused method (elastic#105739)
Browse files Browse the repository at this point in the history
  • Loading branch information
timgrein authored Feb 23, 2024
1 parent ae4e57d commit 5671669
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.elasticsearch.action.update.UpdateRequest;
import org.elasticsearch.action.update.UpdateResponse;
import org.elasticsearch.client.internal.Client;
import org.elasticsearch.common.UUIDs;
import org.elasticsearch.index.IndexNotFoundException;
import org.elasticsearch.index.engine.DocumentMissingException;
import org.elasticsearch.index.query.BoolQueryBuilder;
Expand Down Expand Up @@ -416,14 +415,6 @@ public void updateConnectorSyncJobIngestionStats(

}

private String generateId() {
/* Workaround: only needed for generating an id upfront, autoGenerateId() has a side effect generating a timestamp,
* which would raise an error on the response layer later ("autoGeneratedTimestamp should not be set externally").
* TODO: do we even need to copy the "_id" and set it as "id"?
*/
return UUIDs.base64UUID();
}

private void getSyncJobConnectorInfo(String connectorId, ActionListener<Connector> listener) {
try {

Expand Down

0 comments on commit 5671669

Please sign in to comment.