mirror of https://github.com/voidlizard/hbs2
fixed wtf
This commit is contained in:
parent
f7578a4a8c
commit
ec2c1cc317
|
@ -141,6 +141,7 @@ runGitCLI o m = do
|
|||
|
||||
let endpoints = [ Endpoint @UNIX peerAPI
|
||||
, Endpoint @UNIX refLogAPI
|
||||
, Endpoint @UNIX lwwAPI
|
||||
, Endpoint @UNIX storageAPI
|
||||
]
|
||||
|
||||
|
|
|
@ -74,8 +74,6 @@ importRepoWait lwwKey = do
|
|||
|
||||
subscribeLWWRef lwwKey
|
||||
|
||||
-- void $ try @_ @SomeException (getRefLogMerkl puk)
|
||||
|
||||
fetchLWWRef lwwKey
|
||||
|
||||
flip fix (IWaitLWWBlock 20) $ \next -> \case
|
||||
|
@ -84,9 +82,7 @@ importRepoWait lwwKey = do
|
|||
throwIO ImportRefLogNotFound
|
||||
|
||||
IWaitLWWBlock w -> do
|
||||
fetchLWWRef lwwKey
|
||||
onProgress ip (ImportWaitLWW w lwwKey)
|
||||
notice $ yellow ("fetchLWWRef" <+> pretty lwwKey)
|
||||
lww <- readLWWBlock sto lwwKey
|
||||
|
||||
case lww of
|
||||
|
|
|
@ -29,10 +29,7 @@ subscribeLWWRef puk = do
|
|||
fetchLWWRef :: (GitPerks m, MonadReader GitEnv m) => LWWRefKey HBS2Basic -> m ()
|
||||
fetchLWWRef key = do
|
||||
api <- asks _lwwRefAPI
|
||||
notice $ green "fetchLWWRef" <+> pretty key
|
||||
r <- race (pause @'Seconds 2) (callService @RpcLWWRefFetch api key)
|
||||
warn $ "result:" <+> viaShow r
|
||||
|
||||
void $ race (pause @'Seconds 1) (callService @RpcLWWRefFetch api key)
|
||||
|
||||
getRefLogMerkle :: (GitPerks m, MonadReader GitEnv m) => RefLogId -> m (Maybe HashRef)
|
||||
getRefLogMerkle puk = do
|
||||
|
|
|
@ -295,11 +295,11 @@
|
|||
"suckless-conf": "suckless-conf_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710493310,
|
||||
"narHash": "sha256-LeTP5qZvjl4ZY23ktv6mYNuTRKsJenuEajw3Cz8vP70=",
|
||||
"lastModified": 1710494072,
|
||||
"narHash": "sha256-6pZlN9lLxWBzWQXJe34G6UgNjla1FKEAs+fOL9R+vg8=",
|
||||
"ref": "lwwrepo",
|
||||
"rev": "9497207115ed51663415c9e066a86bcb615a3cf8",
|
||||
"revCount": 982,
|
||||
"rev": "f7578a4a8ceb521ce038be257b4628fa2d811ce1",
|
||||
"revCount": 983,
|
||||
"type": "git",
|
||||
"url": "http://git.hbs2/BTThPdHKF8XnEq4m6wzbKHKA6geLFK4ydYhBXAqBdHSP"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue