diff options
author | Eric Wong <e@80x24.org> | 2019-07-08 07:22:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-07-08 07:29:26 +0000 |
commit | 3672f8765e3d4e15bc470dd18c6c8011dad296e0 (patch) | |
tree | 7ac21c4722a9fd1f0468b7f36752354ee6647dac | |
parent | e5590311007f9d126e61510d42228303fdf94e54 (diff) | |
download | public-inbox-3672f8765e3d4e15bc470dd18c6c8011dad296e0.tar.gz |
*glob notation isn't always necessary, and there's no need to disable 'once' warnings, this way.
-rw-r--r-- | lib/PublicInbox/HTTPD.pm | 5 |
1 files changed, 1 insertions, 4 deletions
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, |