wip, quick and dirty bugfix

This commit is contained in:
Dmitry Zuikov 2024-08-26 09:37:27 +03:00
parent 3638f45fb8
commit de4c83da9d
1 changed files with 5 additions and 1 deletions

View File

@ -261,6 +261,10 @@ getStateFromRefChan rchan = do
db <- newDBPipeEnv dbPipeOptsDef (statePath </> "state.db")
here <- doesDirectoryExist statePath
unless here $ mkdir statePath
flip runContT pure do
void $ ContT $ bracket (async (runPipe db)) cancel
@ -278,7 +282,7 @@ getStateFromRefChan rchan = do
let members = view refChanHeadReaders rch & HS.toList
krl <- liftIO $ runKeymanClient $ loadKeyRingEntries members
krl <- liftIO $ runKeymanClientRO $ loadKeyRingEntries members
<&> L.sortOn (Down . fst)
<&> fmap snd