mirror of https://github.com/voidlizard/hbs2
wip, quick and dirty bugfix
This commit is contained in:
parent
3638f45fb8
commit
de4c83da9d
|
@ -261,6 +261,10 @@ getStateFromRefChan rchan = do
|
||||||
|
|
||||||
db <- newDBPipeEnv dbPipeOptsDef (statePath </> "state.db")
|
db <- newDBPipeEnv dbPipeOptsDef (statePath </> "state.db")
|
||||||
|
|
||||||
|
here <- doesDirectoryExist statePath
|
||||||
|
|
||||||
|
unless here $ mkdir statePath
|
||||||
|
|
||||||
flip runContT pure do
|
flip runContT pure do
|
||||||
|
|
||||||
void $ ContT $ bracket (async (runPipe db)) cancel
|
void $ ContT $ bracket (async (runPipe db)) cancel
|
||||||
|
@ -278,7 +282,7 @@ getStateFromRefChan rchan = do
|
||||||
|
|
||||||
let members = view refChanHeadReaders rch & HS.toList
|
let members = view refChanHeadReaders rch & HS.toList
|
||||||
|
|
||||||
krl <- liftIO $ runKeymanClient $ loadKeyRingEntries members
|
krl <- liftIO $ runKeymanClientRO $ loadKeyRingEntries members
|
||||||
<&> L.sortOn (Down . fst)
|
<&> L.sortOn (Down . fst)
|
||||||
<&> fmap snd
|
<&> fmap snd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue