mirror of https://github.com/voidlizard/hbs2
git: latest checkpoint output
This commit is contained in:
parent
768a8181e7
commit
695f271cf8
|
@ -182,7 +182,10 @@ main = flip runContT pure do
|
|||
|
||||
case what of
|
||||
[ListVal [SymbolVal "checkpoint", TextLike w, LitIntVal r]] -> do
|
||||
atomically $ writeTVar cp_ (Just (w,r))
|
||||
atomically do
|
||||
ts0 <- readTVar cp_ <&> fmap snd
|
||||
when (Just r > ts0) do
|
||||
writeTVar cp_ (Just (w,r))
|
||||
|
||||
[ListVal [SymbolVal "status", TextLike "FLUSH"]] -> do
|
||||
finished ()
|
||||
|
|
Loading…
Reference in New Issue