Skip to content

Commit

Permalink
Merge #2270
Browse files Browse the repository at this point in the history
2270: Drop `PoolMetadataFetchAttempts` in `removePoolMetadata` r=hasufell a=hasufell

When removing pool metadata, there's no point in keeping
the last fetch attempts. In fact, this might delay re-syncing
further.

Co-authored-by: Julian Ospald <[email protected]>
  • Loading branch information
iohk-bors[bot] and Julian Ospald authored Oct 26, 2020
2 parents d2c1c0c + a031188 commit a529471
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 a529471

Please sign in to comment.