Skip to content

Commit fe80966

Browse files
committed
don't need salt file path, information is enough
1 parent a032b3f commit fe80966

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/uid2/shared/store/salt/RotatingSaltProvider.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ private SaltSnapshot loadSnapshot(JsonObject spec, String firstLevelSalt, SaltFi
133133
final long downloadStart = System.currentTimeMillis();
134134
SaltEntry[] entries = readInputStream(this.contentStreamProvider.download(path), saltFileParser, size);
135135
final long downloadEnd = System.currentTimeMillis();
136-
String fileName = path.substring(path.lastIndexOf('/') + 1);
137-
if (fileName.contains("?")) {
138-
fileName = fileName.substring(0, fileName.indexOf("?"));
139-
}
140-
LOGGER.info("Salt file {} downloaded in {} ms", fileName, downloadEnd - downloadStart);
136+
LOGGER.info("Salt file downloaded in {} ms", downloadEnd - downloadStart);
141137

142138
LOGGER.info("Loaded {} salts", size);
143139
return new SaltSnapshot(effective, expires, entries, firstLevelSalt);

0 commit comments

Comments
 (0)