mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
Merge branch 'release/next-sys' of ssh://github.com/urbit/urbit into release/next-sys
This commit is contained in:
commit
f73b913df9
@ -1967,20 +1967,12 @@
|
|||||||
++ on-memo
|
++ on-memo
|
||||||
|= [=bone payload=* valence=?(%plea %boon)]
|
|= [=bone payload=* valence=?(%plea %boon)]
|
||||||
^+ peer-core
|
^+ peer-core
|
||||||
:: if we haven't been trying to talk to %live, reset timer
|
|
||||||
::
|
|
||||||
=? last-contact.qos.peer-state
|
|
||||||
?& ?=(%live -.qos.peer-state)
|
|
||||||
%- ~(all by snd.peer-state)
|
|
||||||
|= =message-pump-state
|
|
||||||
=(~ live.packet-pump-state.message-pump-state)
|
|
||||||
==
|
|
||||||
now
|
|
||||||
::
|
|
||||||
=/ =message-blob (dedup-message (jim payload))
|
=/ =message-blob (dedup-message (jim payload))
|
||||||
=. peer-core (run-message-pump bone %memo message-blob)
|
=. peer-core (run-message-pump bone %memo message-blob)
|
||||||
::
|
::
|
||||||
?: &(=(%boon valence) ?=(?(%dead %unborn) -.qos.peer-state))
|
?: ?& =(%boon valence)
|
||||||
|
(gte now (add ~s30 last-contact.qos.peer-state))
|
||||||
|
==
|
||||||
check-clog
|
check-clog
|
||||||
peer-core
|
peer-core
|
||||||
:: +dedup-message: replace with any existing copy of this message
|
:: +dedup-message: replace with any existing copy of this message
|
||||||
|
Loading…
Reference in New Issue
Block a user