Skip to content

Commit

Permalink
Return existing resource instead of null for duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
ato committed Dec 18, 2024
1 parent 07efbbc commit df64b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler/src/org/netpreserve/warcaroo/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public Resource save(long pageId, ResourceFetched fetch, Map<String, List<String
responseDigest == null ? null : responseDigest.prefixedBase32());
if (existingDuplicate != null) {
log.debug("Not saving duplicate of resource {}: {}", existingDuplicate.responseUuid(), fetch.url());
return null;
return existingDuplicate;
}

Instant responseTime = fetch.responseTime();
Expand Down

0 comments on commit df64b02

Please sign in to comment.