fixed 6kx1sdj7ej

This commit is contained in:
Dmitry Zuikov 2023-04-05 05:03:22 +03:00
parent 485e1974a2
commit f035827731
4 changed files with 9 additions and 27 deletions

View File

@ -1,10 +1,3 @@
(fixme-set "workflow" "test" "5dkZ3UqkiT")
(fixme-set "assigned" "voidlizard" "5dkZ3UqkiT")
(fixme-set "workflow" "test" "3Xv2bBY3ac")
(fixme-set "assigned" "fastpok" "3Xv2bBY3ac")
(fixme-set "workflow" "test" "9MT1XdzCy8")
(fixme-set "assigned" "voidlizard" "9MT1XdzCy8")
(fixme-set "workflow" "test" "6mTMkyQUYR")
(fixme-set "assigned" "voidlizard" "6mTMkyQUYR")
(fixme-set "workflow" "backlog" "GYiBo1ubTf")
(fixme-set "workflow" "test" "6kx1sdj7ej")
(fixme-set "assigned" "voidlizard" "6kx1sdj7ej")

View File

@ -37,10 +37,9 @@ data RefLogUpdate e =
makeLenses 'RefLogUpdate
data RefLogUpdateI e m =
newtype RefLogUpdateI e m =
RefLogUpdateI
{ refLogUpdate :: (PubKey 'Sign e, RefLogUpdate e) -> m ()
, refLogBroadcast :: RefLogUpdate e -> m ()
{ refLogBroadcast :: RefLogUpdate e -> m ()
}
data RefLogUpdateEv e
@ -188,7 +187,6 @@ refLogUpdateProto adapter =
-- FIXME: refactor:use-type-application-for-deferred
deferred proto do
emit @e RefLogUpdateEvKey (RefLogUpdateEvData (pubk, e))
refLogUpdate adapter (pubk, e)
refLogBroadcast adapter e
pure ()

View File

@ -778,7 +778,8 @@ runPeer opts = Exception.handle myException $ do
warn "unable to parse RefLogUpdate message"
maybe1 msg' none $ \msg -> do
RefLog.doRefLogUpdate (view refLogId msg, msg)
let pubk = view refLogId msg
emit @e RefLogUpdateEvKey (RefLogUpdateEvData (pubk, msg))
RefLog.doRefLogBroadCast msg
_ -> pure ()

View File

@ -41,15 +41,6 @@ import Control.Concurrent.Async
import Control.Monad.Trans.Maybe
import Lens.Micro.Platform
doRefLogUpdate :: forall e m . ( MonadIO m
, Pretty (AsBase58 (PubKey 'Sign e))
)
=> (PubKey 'Sign e, RefLogUpdate e) -> m ()
doRefLogUpdate (reflog, _) = do
trace $ "doRefLogUpdate" <+> pretty (AsBase58 reflog)
pure ()
doRefLogBroadCast :: forall e m . ( MonadIO m
, MyPeer e
, HasPeerLocator e m
@ -100,8 +91,7 @@ mkAdapter :: forall e m . ( MonadIO m
mkAdapter = do
let bcast = lift . doRefLogBroadCast @e
let upd = lift . doRefLogUpdate @e
pure $ RefLogUpdateI upd bcast
pure $ RefLogUpdateI bcast
data RefLogWorkerAdapter e =