Skip to content

Commit

Permalink
Drop PoolMetadataFetchAttempts in removePoolMetadata
Browse files Browse the repository at this point in the history
When removing pool metadata, there's no point in keeping
the last fetch attempts. In fact, this might delay re-syncing
further.
  • Loading branch information
Julian Ospald committed Oct 26, 2020
1 parent 19a0bf6 commit a031188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/src/Cardano/Pool/DB/Sqlite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ newDBLayer trace fp timeInterpreter = do
(PoolMetadata hash name ticker description homepage)
deleteWhere [ PoolFetchAttemptsMetadataHash ==. hash ]

removePoolMetadata =
removePoolMetadata = do
deleteWhere ([] :: [Filter PoolMetadata])
deleteWhere ([] :: [Filter PoolMetadataFetchAttempts])

readPoolMetadata = do
Map.fromList . map (fromPoolMeta . entityVal)
Expand Down

0 comments on commit a031188

Please sign in to comment.