]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/perf-msgview.t
view: remove mhref arg from multipart_text_as_html
[public-inbox.git] / xt / perf-msgview.t
index f676ca936decc9459db31977b46f46108d29c347..3ea92ec67f063879dc58871fe9de27c16a90c5a6 100644 (file)
@@ -37,13 +37,14 @@ my $n = 0;
 my $t = timeit(1, sub {
        my $obuf = '';
        $ctx->{obuf} = \$obuf;
+       $ctx->{mhref} = '../';
        while (<$fh>) {
                ($cmt, $type) = split / /;
                next if $type ne 'blob';
                ++$n;
                $str = $git->cat_file($cmt);
                $mime = PublicInbox::MIME->new($str);
-               PublicInbox::View::multipart_text_as_html($mime, '../', $ctx);
+               PublicInbox::View::multipart_text_as_html($mime, $ctx);
                $obuf = '';
        }
 });