Skip to content

Commit

Permalink
Wording
Browse files Browse the repository at this point in the history
  • Loading branch information
lolepezy committed Jun 30, 2024
1 parent bfcbb0c commit 8beaf18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/RPKI/Messages.hs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ toValidationMessage = \case

ManifestNumberDecreased {..} ->
[i|Manifest number #{newMftNumber} is smaller than the previous #{oldMftNumber}, |] <>
[i|will use previous manifest if it exists and is valid.|]
[i|will fall back to the previous one.|]

MftFallback e ->
[i|Fallback to the last valid manifest happened, with the error: #{toMessage e}|]
Expand Down
5 changes: 1 addition & 4 deletions src/RPKI/Validation/TopDown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ validateCaNoFetch
[] -> False
_ -> True

-- Given MFT entry with hash and filename, get the object it referes to
-- Given MFT entry with hash and filename, get the object it refers to
--
getManifestEntry filename hash' = do
let objectType = textObjectType filename
Expand Down Expand Up @@ -1013,9 +1013,6 @@ validateCaNoFetch
-- Optimised version of location validation when all we have is a key of an object
--
validateLocationForShortcut key = do
-- pure ()
-- TODO Measure how much it costs and if it's noticeably costly
-- validate them all after the main traverse
count <- roTxT database $ \tx db -> getLocationCountByKey tx db key
when (count > 1) $ do
z <- roTxT database $ \tx db -> getLocationsByKey tx db key
Expand Down

0 comments on commit 8beaf18

Please sign in to comment.