mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 20:31:40 +03:00
ames: don't scry dudes for every peer
This commit is contained in:
parent
108e0cd023
commit
1522e4ab96
@ -1928,15 +1928,15 @@
|
||||
?. dry core
|
||||
%.(core (slog leaf/"ames: #{<corks>} flows can be corked" ~))
|
||||
::
|
||||
=/ dudes ;; (map dude:gall nonce=@)
|
||||
=< q.q %- need %- need
|
||||
(rof ~ %gf `beam`[[our %$ da+now] /])
|
||||
::
|
||||
%+ roll ~(tap by peers.ames-state)
|
||||
|= [[=ship =ship-state] corks=@ core=_event-core]
|
||||
?. ?=(%known -.ship-state)
|
||||
corks^core
|
||||
=/ =peer-state:ames ?>(?=(%known -.ship-state) +.ship-state)
|
||||
=/ dudes ;; (map dude:gall nonce=@)
|
||||
=< q.q %- need %- need
|
||||
(rof ~ %gf `beam`[[our %$ da+now] /])
|
||||
::
|
||||
=/ subs=(jar path [bone sub-nonce=@])
|
||||
%+ roll ~(tap by snd.peer-state)
|
||||
|= [[=forward=bone *] subs=(jar path [bone sub-nonce=@])]
|
||||
|
Loading…
Reference in New Issue
Block a user