X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FRepoTree.pm;h=7434e9b275f08d2dd8f5c19e1333bb0b2b40ff0e;hb=1c8b8a0a7a8bf81303bd2b1f6ad5b377ec1fa4b2;hp=84e2058983027a1ad2c3a5e63682168c3494e930;hpb=d967c043322e636fd6ff810d54b70d8cd9fe91df;p=public-inbox.git 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); }; }