Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

Commit 3ca245f

Browse files
authored
Merge pull request #95 from conveyal/fix-modifications-checksum
refactor(comment): clarify modifications checksum
2 parents 65b4b19 + f2803c1 commit 3ca245f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/conveyal/taui/models/AnalysisRequest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public AnalysisTask populateTask (AnalysisTask task, Project project) {
8383
modifications = modificationsForProject(project.accessGroup, projectId, variantIndex);
8484
}
8585

86-
// Generate a checksum of the modifications to uniquely identify this dataset for the broker and the workers.
86+
// The CRC is appended to the scenario ID to identify a unique revision of the scenario (still denoted here
87+
// as variant) allowing the worker to cache and reuse networks built by applying that exact revision of the
88+
// scenario to a base network.
8789
CRC32 crc = new CRC32();
8890
crc.update(JsonUtilities.objectToJsonBytes(modifications));
8991
long crcValue = crc.getValue();

0 commit comments

Comments
 (0)