From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6D3201F87E for ; Wed, 25 Oct 2023 00:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698193791; bh=8CW2eM83ajxog6q2LR96cWRnIqxrrDYLte5vgISX4rs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=geJ7aFt7KqL45pVwKtQU4rukf+3KWYPi2W8cNoVwYJh84UPw6jYjbuMk8sne0fBsy I61QRAEvwozkvKzN2svmMv7W3wxttIp8wdwD3yHJC4LjnAu7I4HdmP2Zr8I+cUJvLq PXGEzRsii1jZn5FrQ857N4MmYl6pI9ObErtMOoLI= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 11/26] repo_snapshot: psgi_yield Date: Wed, 25 Oct 2023 00:29:34 +0000 Message-ID: <20231025002949.3092193-12-e@80x24.org> In-Reply-To: <20231025002949.3092193-1-e@80x24.org> References: <20231025002949.3092193-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Another drop-in replacement for psgi_return. --- lib/PublicInbox/RepoSnapshot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/RepoSnapshot.pm b/lib/PublicInbox/RepoSnapshot.pm index ebcbbd81..6b7441b0 100644 --- a/lib/PublicInbox/RepoSnapshot.pm +++ b/lib/PublicInbox/RepoSnapshot.pm @@ -58,7 +58,7 @@ sub ver_check { # git->check_async callback "--git-dir=$ctx->{git}->{git_dir}", 'archive', "--prefix=$ctx->{snap_pfx}/", "--format=$ctx->{snap_fmt}", $treeish]); - $qsp->psgi_return($ctx->{env}, undef, \&archive_hdr, $ctx); + $qsp->psgi_yield($ctx->{env}, undef, \&archive_hdr, $ctx); } }