From 1522e4ab96966c215d3756e77a687b3c400a300f Mon Sep 17 00:00:00 2001 From: yosoyubik Date: Mon, 6 Feb 2023 15:11:30 +0100 Subject: [PATCH] ames: don't scry dudes for every peer --- pkg/arvo/sys/vane/ames.hoon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/arvo/sys/vane/ames.hoon b/pkg/arvo/sys/vane/ames.hoon index 851cf53c2..dc938e87f 100644 --- a/pkg/arvo/sys/vane/ames.hoon +++ b/pkg/arvo/sys/vane/ames.hoon @@ -1928,15 +1928,15 @@ ?. dry core %.(core (slog leaf/"ames: #{} 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=@])]