From b60aada75e5143f2861b330684ae7c5639d9c0dc Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 26 Aug 2021 12:12:54 +1000 Subject: [PATCH] spider: parameterize desk in http request --- pkg/arvo/app/spider.hoon | 12 ++++++------ pkg/{arvo => landscape}/mar/metadata/update-2.hoon | 0 2 files changed, 6 insertions(+), 6 deletions(-) rename pkg/{arvo => landscape}/mar/metadata/update-2.hoon (100%) diff --git a/pkg/arvo/app/spider.hoon b/pkg/arvo/app/spider.hoon index 5fd232761..e1140a256 100644 --- a/pkg/arvo/app/spider.hoon +++ b/pkg/arvo/app/spider.hoon @@ -285,17 +285,17 @@ ~/ %handle-http-request |= [eyre-id=@ta =inbound-request:eyre] ^- (quip card _state) - ?> authenticated.inbound-request + ::?> authenticated.inbound-request =/ url (parse-request-line:server url.request.inbound-request) - ?> ?=([%spider @t @t @t ~] site.url) - =* input-mark i.t.site.url - =* thread i.t.t.site.url - =* output-mark i.t.t.t.site.url + ?> ?=([%spider @t @t @t @t ~] site.url) + =* desk i.t.site.url + =* input-mark i.t.t.site.url + =* thread i.t.t.t.site.url + =* output-mark i.t.t.t.t.site.url =/ =tid (new-thread-id thread) =. serving.state (~(put by serving.state) tid [eyre-id output-mark]) - =/ =desk %landscape :: TODO: make this generic :: TODO: speed this up somehow. we spend about 15ms in this arm alone :: =+ .^ diff --git a/pkg/arvo/mar/metadata/update-2.hoon b/pkg/landscape/mar/metadata/update-2.hoon similarity index 100% rename from pkg/arvo/mar/metadata/update-2.hoon rename to pkg/landscape/mar/metadata/update-2.hoon