diff options
author | Eric Wong <e@80x24.org> | 2023-01-13 10:35:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-13 19:14:42 +0000 |
commit | 1c8b8a0a7a8bf81303bd2b1f6ad5b377ec1fa4b2 (patch) | |
tree | 84dcb77250d996be62dba56ee24e2a09755447a8 /lib/PublicInbox/RepoTree.pm | |
parent | d967c043322e636fd6ff810d54b70d8cd9fe91df (diff) | |
download | public-inbox-1c8b8a0a7a8bf81303bd2b1f6ad5b377ec1fa4b2.tar.gz |
And another opportunity to simplify our code between different PSGI-ish implementations. The snapshot retrieval is simpler, but potentially slower since we waste cycles scanning for tags even after we've found one. It's probably not a big deal since it's only short info lines and we can utilize pipelining.
Diffstat (limited to 'lib/PublicInbox/RepoTree.pm')
-rw-r--r-- | lib/PublicInbox/RepoTree.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/PublicInbox/RepoTree.pm b/lib/PublicInbox/RepoTree.pm index 84e20589..7434e9b2 100644 --- a/lib/PublicInbox/RepoTree.pm +++ b/lib/PublicInbox/RepoTree.pm @@ -5,7 +5,6 @@ package PublicInbox::RepoTree; use v5.12; use PublicInbox::ViewDiff qw(uri_escape_path); -use PublicInbox::GitAsyncCat; use PublicInbox::WwwStatic qw(r); use PublicInbox::Qspawn; use PublicInbox::WwwStream qw(html_oneshot); @@ -78,12 +77,7 @@ sub srv_tree { return if index($obj, "\n") >= 0; sub { $ctx->{-wcb} = $_[0]; # HTTP::{Chunked,Identity} - if ($ctx->{env}->{'pi-httpd.async'}) { - async_check($ctx, $obj, \&tree_show, $ctx); - } else { - $ctx->{git}->check_async($obj, \&tree_show, $ctx); - $ctx->{git}->async_wait_all; - } + PublicInbox::ViewVCS::do_check_async($ctx, \&tree_show, $obj); }; } |