diff options
author | Eric Wong <e@80x24.org> | 2016-01-04 20:18:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-01-04 20:23:30 +0000 |
commit | e9cec9873b585f2552e2bf9bcbcc44de34caa53d (patch) | |
tree | 75c877f11fba9a9d76874d06fa70ea973df0328f /public-inbox-nntpd | |
parent | 3f0c40d5ae38163cc6494a5a9491b4fb4171847d (diff) | |
download | public-inbox-e9cec9873b585f2552e2bf9bcbcc44de34caa53d.tar.gz |
We can avoid making getpeername syscalls this way.
Diffstat (limited to 'public-inbox-nntpd')
-rwxr-xr-x | public-inbox-nntpd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public-inbox-nntpd b/public-inbox-nntpd index 1f0cd377..706cbee4 100755 --- a/public-inbox-nntpd +++ b/public-inbox-nntpd @@ -11,8 +11,8 @@ require PublicInbox::NNTP; require PublicInbox::Config; my $nntpd = PublicInbox::NNTPD->new; daemon_run('0.0.0.0:119', - sub { $nntpd->refresh_groups }, - sub ($) { PublicInbox::NNTP->new($_[0], $nntpd) }); + sub { $nntpd->refresh_groups }, # refresh + sub ($$) { PublicInbox::NNTP->new($_[0], $nntpd) }); # post_accept 1; package PublicInbox::NNTPD; |