mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
fdb16f96b7
commit
255f3a01d3
|
@ -24,6 +24,7 @@ import Lens.Micro.Platform
|
|||
data GroupKeyOpError =
|
||||
NoRefChanHead
|
||||
| NoReadersSet
|
||||
| GKLoadFailed
|
||||
deriving (Eq,Ord,Show,Typeable)
|
||||
|
||||
instance Exception GroupKeyOpError
|
||||
|
@ -53,7 +54,7 @@ loadGroupKey = do
|
|||
|
||||
flip fix 0 $ \next -> \case
|
||||
|
||||
attempt | attempt > 2 -> mzero
|
||||
attempt | attempt > 2 -> throwIO GKLoadFailed
|
||||
|
||||
attempt -> do
|
||||
|
||||
|
|
Loading…
Reference in New Issue