mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
gall: improve match detection in +ap-rake
Making sure to stringify the nonce and including all the target details in the wire, and excluding flows that are already closing.
This commit is contained in:
parent
d8df2787a0
commit
a5335f5851
@ -1792,14 +1792,24 @@
|
||||
$(subs t.subs)
|
||||
::
|
||||
=/ dud=(set duct)
|
||||
=/ mod [%gall %use agent-name run-nonce.yoke %out 0 wire]
|
||||
=/ mod=^wire
|
||||
:* %gall %use
|
||||
agent-name
|
||||
run-nonce.yoke
|
||||
%out
|
||||
(scot %p p.dock)
|
||||
q.dock
|
||||
'0'
|
||||
wire
|
||||
==
|
||||
%- ~(rep by by-duct.ossuary.u.per)
|
||||
|= [[=duct @] out=(set duct)]
|
||||
|= [[=duct =bone] out=(set duct)]
|
||||
^+ out
|
||||
?. ?& ?=([* [%gall %use @ @ %out ^] *] duct)
|
||||
=(mod i.t.duct(i.t.t.t.t.t 0))
|
||||
?. ?& ?=([* [%gall %use @ @ %out @ @ @ *] *] duct)
|
||||
=(mod i.t.duct(i.t.t.t.t.t.t.t '0'))
|
||||
==
|
||||
out
|
||||
?: (~(has in closing.u.per) bone) out
|
||||
~> %slog.0^leaf+"gall: rake {<i.t.duct>}"
|
||||
(~(put in out) duct)
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user