mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
36a0282256
commit
208a2a0644
|
@ -98,6 +98,13 @@ refChanHeadProto :: forall e s m . ( MonadIO m
|
||||||
|
|
||||||
refChanHeadProto self adapter msg = do
|
refChanHeadProto self adapter msg = do
|
||||||
-- авторизовать пира
|
-- авторизовать пира
|
||||||
|
peer <- thatPeer (Proxy @(RefChanHead e))
|
||||||
|
|
||||||
|
auth <- find (KnownPeerKey peer) id <&> isJust
|
||||||
|
|
||||||
|
guard (auth || self)
|
||||||
|
|
||||||
|
void $ runMaybeT do
|
||||||
|
|
||||||
case msg of
|
case msg of
|
||||||
RefChanHead pkt _ -> do
|
RefChanHead pkt _ -> do
|
||||||
|
|
Loading…
Reference in New Issue