Skip to content

Commit

Permalink
Use MsgRemovingPool in removePools DB operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Aug 20, 2020
1 parent 0dd946f commit 643486f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/core/src/Cardano/Pool/DB/Sqlite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,7 @@ newDBLayer trace fp timeInterpreter = do
-- TODO: remove dangling metadata no longer attached to a pool

, removePools = mapM_ $ \pool -> do
liftIO
$ traceWith trace
$ MsgGeneric
$ MsgRemovingDatabaseEntity
$ T.unwords [ "pool", toText pool ]
liftIO $ traceWith trace $ MsgRemovingPool pool
deleteWhere [ PoolProductionPoolId ==. pool ]
deleteWhere [ PoolOwnerPoolId ==. pool ]
deleteWhere [ PoolRegistrationPoolId ==. pool ]
Expand Down

0 comments on commit 643486f

Please sign in to comment.