From: Eric Wong <e@80x24.org>
Date: Mon, 8 Jul 2019 07:22:31 +0000 (+0000)
Subject: httpd: (cleanup) use reference instead of *glob
X-Git-Tag: v1.2.0~121
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3672f8765e3d4e15bc470dd18c6c8011dad296e0;p=public-inbox.git

httpd: (cleanup) use reference instead of *glob

*glob notation isn't always necessary, and there's
no need to disable 'once' warnings, this way.
---

diff --git a/lib/PublicInbox/HTTPD.pm b/lib/PublicInbox/HTTPD.pm
index b0bf94ad..d10ec51c 100644
--- a/lib/PublicInbox/HTTPD.pm
+++ b/lib/PublicInbox/HTTPD.pm
@@ -39,10 +39,7 @@ sub new {
 		# The rest of our PSGI code is generic, relying
 		# on "pull" model using "getline" to prevent
 		# over-buffering.
-		'pi-httpd.async' => do {
-			no warnings 'once';
-			*pi_httpd_async
-		},
+		'pi-httpd.async' => \&pi_httpd_async
 	);
 	bless {
 		app => $app,