Skip to content

Commit

Permalink
refactoring #32 | define reader on Block instead of BlockHeaderHash
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Mar 11, 2019
1 parent 1b97e4d commit 633d8ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/Cardano/Wallet/BlockSyncerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,10 @@ mkReader ref m k = do
modifyMVar_ ref $ return . (v :)
Nothing ->
return ()

mkReader'
:: MVar [a]
-> a
-> IO ()
mkReader' ref x = do
modifyMVar_ ref $ return . (x :)

0 comments on commit 633d8ab

Please sign in to comment.