]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/perf-msgview.t
treewide: replace {-inbox} with {ibx} for consistency
[public-inbox.git] / xt / perf-msgview.t
index a4445959406ae948ee0e124c003871c2b59cd23c..30e133d7c396ce965936d999b69a28c30b4ad75a 100644 (file)
@@ -29,7 +29,7 @@ select($vec, undef, undef, 60) or die "timed out waiting for --batch-check";
 
 my $ctx = {
        env => { HTTP_HOST => 'example.com', 'psgi.url_scheme' => 'https' },
-       -inbox => $ibx,
+       ibx => $ibx,
        www => Plack::Util::inline_object(style => sub {''}),
 };
 my ($mime, $res, $oid, $type);
@@ -38,13 +38,12 @@ my $obuf = '';
 my $m = 0;
 
 my $cb = sub {
-       $mime = PublicInbox::MIME->new(shift);
+       $mime = PublicInbox::Eml->new(shift);
        PublicInbox::View::multipart_text_as_html($mime, $ctx);
        ++$m;
        $obuf = '';
 };
 
-$git->cat_async_begin;
 my $t = timeit(1, sub {
        $ctx->{obuf} = \$obuf;
        $ctx->{mhref} = '../';