]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ds: get rid of on_incomplete_write wrapper
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:06 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:25 +0000 (05:26 +0000)
Wrong place to be wrapping this method.

lib/PublicInbox/DS.pm

index ed04feb5c9e0d699feb0a4b05252aa29b8faa1aa..26c5251b5046951ca958650a929586e820909414 100644 (file)
@@ -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.