Skip to content

Commit

Permalink
Removing setMasterKey from initializeMasterKey method
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Nov 27, 2023
1 parent 8fdb93e commit e320b7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void initializeMasterKey(ActionListener<Boolean> listener) {
client.index(masterKeyIndexRequest, ActionListener.wrap(indexResponse -> {
// Set generated key to master
logger.info("Master key has been initialized successfully");
this.setMasterKey(masterKey);
this.masterKey = masterKey;
listener.onResponse(true);
}, indexException -> {
logger.error("Failed to index master key", indexException);
Expand All @@ -238,7 +238,7 @@ public void initializeMasterKey(ActionListener<Boolean> listener) {
// Set existing key to master
logger.info("Master key has already been initialized");
final String masterKey = (String) getResponse.getSourceAsMap().get(MASTER_KEY);
this.setMasterKey(masterKey);
this.masterKey = masterKey;
listener.onResponse(true);
}
}, getRequestException -> {
Expand Down

0 comments on commit e320b7d

Please sign in to comment.