mirror of https://github.com/voidlizard/hbs2
Remove waiting for refchan on run directory as it fails on freshly created sync
This commit is contained in:
parent
d39d2ede4b
commit
98cbd3d80f
|
@ -242,11 +242,11 @@ hbs2-sync init --refchan 94GF31TtD38yWG6iZLRy1xZBb1dxcAC7BRBJTMyAq8VF
|
|||
|
||||
refchan <-
|
||||
view dirSyncRefChan env
|
||||
& orThrowUser "refchan not found"
|
||||
& orThrowUser "refchan not found"
|
||||
|
||||
state <- getStateFromRefChan refchan
|
||||
let tombs = filter (isTomb . snd) state
|
||||
for_ tombs $ \(path, entry) -> do
|
||||
for_ tombs $ \(path, entry) -> do
|
||||
when (isTomb entry) do
|
||||
liftIO $ putStrLn path
|
||||
|
||||
|
@ -258,7 +258,7 @@ hbs2-sync init --refchan 94GF31TtD38yWG6iZLRy1xZBb1dxcAC7BRBJTMyAq8VF
|
|||
|
||||
refchan <-
|
||||
view dirSyncRefChan env
|
||||
& orThrowUser "refchan not found"
|
||||
& orThrowUser "refchan not found"
|
||||
|
||||
accepted <- getAccepted refchan <&> L.sortOn getEntryTimestamp
|
||||
|
||||
|
|
|
@ -776,9 +776,6 @@ runDirectory = do
|
|||
|
||||
refchan <- view dirSyncRefChan env & orThrow RefChanNotSetException
|
||||
|
||||
waitForRefchan refchan (TimeoutMin 1)
|
||||
>>= orThrow RefChanHeadNotFoundException
|
||||
|
||||
-- FIXME: multiple-directory-scans
|
||||
|
||||
local <- getStateFromDir0 True
|
||||
|
|
Loading…
Reference in New Issue