Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
vietnguyengit committed Dec 9, 2024
1 parent 137366b commit b54a8a7
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -21,9 +21,9 @@ public enum ArdcCurrentPaths {
private final String categoryCurrent;
private final String vocabCurrent;

ArdcCurrentPaths(String categoryRoot, String vocabRoot) {
String rootHostname = "https://vocabs.ardc.edu.au/repository/api/lda/aodn";
this.categoryCurrent = rootHostname + categoryRoot;
this.vocabCurrent = rootHostname + vocabRoot;
ArdcCurrentPaths(String categoryCurrent, String vocabCurrent) {
String baseUrl = "https://vocabs.ardc.edu.au/repository/api/lda/aodn";
this.categoryCurrent = baseUrl + categoryCurrent;
this.vocabCurrent = baseUrl + vocabCurrent;
}
}
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ public void scheduledRefreshVocabsData() {
vocabService.populateVocabsData(latestResolvedPathCollection);
refreshCaches();

// Synchronize the update of the shared resource (storedResolvedPathCollection)
// update the head if there are new versions
synchronized (this) {
storedResolvedPathCollection = latestResolvedPathCollection;
log.info("Updated storedResolvedPathCollection with the latest data.");

0 comments on commit b54a8a7

Please sign in to comment.