mirror of https://github.com/voidlizard/hbs2
wip, tryin to fetch refchan head
This commit is contained in:
parent
c2649a6ad4
commit
51ac42f5c0
|
@ -782,7 +782,7 @@ runBasicBrains cfg brains = do
|
||||||
] )
|
] )
|
||||||
|
|
||||||
void $ async $ do
|
void $ async $ do
|
||||||
pause @'Seconds 5
|
-- pause @'Seconds 5
|
||||||
forM_ polls $ \(t,mi,x) -> do
|
forM_ polls $ \(t,mi,x) -> do
|
||||||
trace $ "BRAINS: poll" <+> pretty t <+> pretty (AsBase58 x) <+> pretty mi
|
trace $ "BRAINS: poll" <+> pretty t <+> pretty (AsBase58 x) <+> pretty mi
|
||||||
updateOP brains $ do
|
updateOP brains $ do
|
||||||
|
|
|
@ -173,7 +173,7 @@ refChanWorker env brains = do
|
||||||
where
|
where
|
||||||
|
|
||||||
refChanHeadPoll = do
|
refChanHeadPoll = do
|
||||||
pause @'Seconds 10
|
pause @'Seconds 2
|
||||||
|
|
||||||
now0 <- getTimeCoarse
|
now0 <- getTimeCoarse
|
||||||
refs0 <- listPolledRefs @e brains "refchan" <&> fmap (set _2 now0) <&> HashMap.fromList
|
refs0 <- listPolledRefs @e brains "refchan" <&> fmap (set _2 now0) <&> HashMap.fromList
|
||||||
|
|
Loading…
Reference in New Issue