mirror of https://github.com/voidlizard/hbs2
fixed bug? with readRef
This commit is contained in:
parent
e9c7c9dbae
commit
fc9b0ffb40
|
@ -286,7 +286,7 @@ readBlock h = do
|
||||||
readRef :: (HasStorage m, MonadIO m) => RepoRef -> m (Maybe HashRef)
|
readRef :: (HasStorage m, MonadIO m) => RepoRef -> m (Maybe HashRef)
|
||||||
readRef ref = do
|
readRef ref = do
|
||||||
sto <- getStorage
|
sto <- getStorage
|
||||||
liftIO (getRef sto (refAlias ref)) <&> fmap HashRef
|
liftIO (getRef sto ref) <&> fmap HashRef
|
||||||
|
|
||||||
readHashesFromBlock :: (MonadIO m, HasStorage m) => HashRef -> m [HashRef]
|
readHashesFromBlock :: (MonadIO m, HasStorage m) => HashRef -> m [HashRef]
|
||||||
readHashesFromBlock (HashRef h) = do
|
readHashesFromBlock (HashRef h) = do
|
||||||
|
|
Loading…
Reference in New Issue