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:
parent
0f1577252b
commit
5ae1510d52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user