Skip to content

Commit

Permalink
Merge pull request clearlydefined#598 from qtomlinson/qt/add_policy
Browse files Browse the repository at this point in the history
Introduce a new traversal policy
  • Loading branch information
qtomlinson authored Sep 27, 2024
2 parents a394fde + 20d440b commit f0fb76a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ghcrawler/lib/traversalPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ class TraversalPolicy {
return new TraversalPolicy('storageOnly', 'always', TraversalPolicy._resolveMapSpec(map))
}

static reharvestAlways(map) {
return new TraversalPolicy('mutables', 'always', TraversalPolicy._resolveMapSpec(map))
}

static clone(policy) {
return new TraversalPolicy(policy.fetch, policy.freshness, policy.map)
}
Expand Down

0 comments on commit f0fb76a

Please sign in to comment.