1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-29 16:48:33 +03:00

Stupid bug: forgot to repeat checkpoint creation

This commit is contained in:
Artyom 2016-03-12 00:08:55 +03:00
parent 0f1577252b
commit 5ae1510d52

View File

@ -256,7 +256,7 @@ main = do
bracket (openLocalStateFrom "state/" sampleState)
(\db -> createCheckpoint db >> closeAcidState db) $ \db -> do
-- Create a checkpoint every hour
forkOS $ do
forkOS $ forever $ do
createCheckpoint db
threadDelay (1000000 * 3600)
let config = defaultSpockCfg () PCNoDatabase db