Skip to content

Commit

Permalink
reducing memory usage -test
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Oct 23, 2023
1 parent 7f6bf19 commit 813cdc0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
16 changes: 5 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"ip-sub": "^1.3.9",
"js-yaml": "^4.1.0",
"kafkajs": "^2.2.4",
"longest-prefix-match": "^1.2.3",
"longest-prefix-match": "^1.2.6",
"md5": "^2.3.0",
"moment": "^2.29.4",
"node-cleanup": "^2.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/rpkiUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default class RpkiUtils {

_markAsStale = () => {
if (!!this.params.preCacheROAs) {
const digest = md5(JSON.stringify(this.getVRPs()));
const digest = md5(JSON.stringify(this.getMetadata())) + "-" + this.getVRPs().length;
if (this.oldDigest) {
const stale = this.oldDigest === digest;

Expand Down

0 comments on commit 813cdc0

Please sign in to comment.