diff options
author | Eric Wong <e@80x24.org> | 2022-08-03 07:59:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-03 19:57:37 +0000 |
commit | 7d3928a8c2b759149104d41ad09a6cff490fcef7 (patch) | |
tree | 39d8549b3b480c72ce925b3f1ab0e10927ea0563 /lib/PublicInbox/DSdeflate.pm | |
parent | 6d7f39f784f6e11a5dc69a5054b719614ed986a8 (diff) | |
download | public-inbox-7d3928a8c2b759149104d41ad09a6cff490fcef7.tar.gz |
ds: use ->dflush to distinguish from ->zflush
->zflush is already for GzipFilter in PublicInbox::WWW, while we use DEFLATE for NNTP and IMAP. This ought to make the code easier-to-follow.
Diffstat (limited to 'lib/PublicInbox/DSdeflate.pm')
-rw-r--r-- | lib/PublicInbox/DSdeflate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/DSdeflate.pm b/lib/PublicInbox/DSdeflate.pm index bf0ecd38..639690e2 100644 --- a/lib/PublicInbox/DSdeflate.pm +++ b/lib/PublicInbox/DSdeflate.pm @@ -30,7 +30,7 @@ my %IN_OPT = ( my ($zout, $zbuf); { my $err; - $zbuf = \(my $initial = ''); # replaced by $next in zflush/write + $zbuf = \(my $initial = ''); # replaced by $next in dflush/write ($zout, $err) = Compress::Raw::Zlib::Deflate->new( # nnrpd (INN) and Compress::Raw::Zlib favor MemLevel=9, # the zlib C library and git use MemLevel=8 as the default @@ -100,7 +100,7 @@ sub msg_more ($$) { 1; } -sub zflush ($) { +sub dflush ($) { my ($self) = @_; my $deflated = $zbuf; |