Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 52d1d9e

Browse files
committed
Apply code review suggestion
1 parent ee2b3e0 commit 52d1d9e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

db/src/Pos/DB/Rocks/Functions.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ openNodeDBs recreate fp = do
9494
, miscPath
9595
]
9696

97-
when (System.Info.os == "darwin") $ do
97+
when (System.Info.os == "darwin") $
9898
-- Prevent indexing of blocks on OSX
99-
_ <- openFile (fp </> ".metadata_never_index") AppendMode
100-
pure ()
99+
withFile (fp </> ".metadata_never_index") AppendMode (\_ -> return ())
101100

102101
_blockIndexDB <- openRocksDB blocksIndexPath
103102
_gStateDB <- openRocksDB gStatePath

0 commit comments

Comments
 (0)