From: Eric Wong Date: Mon, 24 Jun 2019 02:52:06 +0000 (+0000) Subject: ds: get rid of on_incomplete_write wrapper X-Git-Tag: v1.2.0~156^2~54 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8c8b5c28b20b4d8ceee89312b1cc9e4602a7beb3;p=public-inbox.git ds: get rid of on_incomplete_write wrapper Wrong place to be wrapping this method. --- diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index ed04feb5..26c5251b 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -571,7 +571,7 @@ sub write { # since connection has stuff to write, it should now be # interested in pending writes: $self->{wbuf_off} += $written; - $self->on_incomplete_write; + $self->watch_write(1); return 0; } elsif ($written == $to_write) { $self->{wbuf_off} = 0; @@ -590,11 +590,6 @@ sub write { } } -sub on_incomplete_write { - my PublicInbox::DS $self = shift; - $self->watch_write(1); -} - =head2 C<< $obj->watch_read( $boolean ) >> Turn 'readable' event notification on or off.