Skip to content

Commit

Permalink
Adjust code to comply with team coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Sep 14, 2020
1 parent 0525347 commit 751be20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/core/src/Cardano/Pool/DB/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ mPutPoolProduction point poolId db@PoolDatabase{pools} =
, db { pools = Map.alter (alter point) poolId pools }
)

mReadPoolProduction :: TimeInterpreter Identity -> EpochNo -> ModelPoolOp (Map PoolId [BlockHeader])
mReadPoolProduction
:: TimeInterpreter Identity
-> EpochNo
-> ModelPoolOp (Map PoolId [BlockHeader])
mReadPoolProduction timeInterpreter epoch db@PoolDatabase{pools} =
let epochOf' = runIdentity . timeInterpreter . epochOf
updateSlots e = Map.map (filter (\x -> epochOf' (slotNo x) == e))
Expand Down

0 comments on commit 751be20

Please sign in to comment.