Skip to content

Commit

Permalink
Removed logic to refresh the encrypted salts writers
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-constine-ttd committed Dec 12, 2024
1 parent 6a78f9a commit 2073903
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ protected void uploadSaltsSnapshot(RotatingSaltProvider.SaltSnapshot snapshot, S
this.upload(newSaltsFile.toString(), location);
}

@Override
protected void refreshProvider() {
// we do not need to refresh the provider on encrypted writers
}

@Override
public void upload(Object data, JsonObject extraMeta) throws Exception {
for(RotatingSaltProvider.SaltSnapshot saltSnapshot: (Collection<RotatingSaltProvider.SaltSnapshot>) data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public void upload(RotatingSaltProvider.SaltSnapshot data) throws Exception {
fileManager.uploadMetadata(metadata, "salts", new CloudPath(provider.getMetadataPath()));

// refresh manually
refreshProvider();
}

protected void refreshProvider() throws Exception {
provider.loadContent();
}

Expand Down

0 comments on commit 2073903

Please sign in to comment.