mirror of https://github.com/voidlizard/hbs2
debug-2
This commit is contained in:
parent
9497207115
commit
f7578a4a8c
|
@ -84,9 +84,9 @@ importRepoWait lwwKey = do
|
||||||
throwIO ImportRefLogNotFound
|
throwIO ImportRefLogNotFound
|
||||||
|
|
||||||
IWaitLWWBlock w -> do
|
IWaitLWWBlock w -> do
|
||||||
onProgress ip (ImportWaitLWW w lwwKey)
|
|
||||||
debug $ yellow ("fetchLWWRef" <+> pretty lwwKey)
|
|
||||||
fetchLWWRef lwwKey
|
fetchLWWRef lwwKey
|
||||||
|
onProgress ip (ImportWaitLWW w lwwKey)
|
||||||
|
notice $ yellow ("fetchLWWRef" <+> pretty lwwKey)
|
||||||
lww <- readLWWBlock sto lwwKey
|
lww <- readLWWBlock sto lwwKey
|
||||||
|
|
||||||
case lww of
|
case lww of
|
||||||
|
|
|
@ -29,7 +29,9 @@ subscribeLWWRef puk = do
|
||||||
fetchLWWRef :: (GitPerks m, MonadReader GitEnv m) => LWWRefKey HBS2Basic -> m ()
|
fetchLWWRef :: (GitPerks m, MonadReader GitEnv m) => LWWRefKey HBS2Basic -> m ()
|
||||||
fetchLWWRef key = do
|
fetchLWWRef key = do
|
||||||
api <- asks _lwwRefAPI
|
api <- asks _lwwRefAPI
|
||||||
void $ race (pause @'Seconds 2) (callService @RpcLWWRefFetch api key)
|
notice $ green "fetchLWWRef" <+> pretty key
|
||||||
|
r <- race (pause @'Seconds 2) (callService @RpcLWWRefFetch api key)
|
||||||
|
warn $ "result:" <+> viaShow r
|
||||||
|
|
||||||
|
|
||||||
getRefLogMerkle :: (GitPerks m, MonadReader GitEnv m) => RefLogId -> m (Maybe HashRef)
|
getRefLogMerkle :: (GitPerks m, MonadReader GitEnv m) => RefLogId -> m (Maybe HashRef)
|
||||||
|
|
|
@ -295,11 +295,11 @@
|
||||||
"suckless-conf": "suckless-conf_2"
|
"suckless-conf": "suckless-conf_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710431896,
|
"lastModified": 1710493310,
|
||||||
"narHash": "sha256-yQ52vtX92Ys4xqsPDCIqOrR5HBVE+rJ+VagaHc9017c=",
|
"narHash": "sha256-LeTP5qZvjl4ZY23ktv6mYNuTRKsJenuEajw3Cz8vP70=",
|
||||||
"ref": "lwwrepo",
|
"ref": "lwwrepo",
|
||||||
"rev": "3cd16684515a93bbf985891ed8e9913382484fbf",
|
"rev": "9497207115ed51663415c9e066a86bcb615a3cf8",
|
||||||
"revCount": 981,
|
"revCount": 982,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://git.hbs2/BTThPdHKF8XnEq4m6wzbKHKA6geLFK4ydYhBXAqBdHSP"
|
"url": "http://git.hbs2/BTThPdHKF8XnEq4m6wzbKHKA6geLFK4ydYhBXAqBdHSP"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue