From c6e7de3579258b73aed9ee5f96c4cb25bb335c86 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 16 Jun 2019 06:11:28 +0000 Subject: ds: stop distinguishing event read and write callbacks Having separate read/write callbacks in every class is too confusing to my easily-confused mind. Instead, give every class an "event_step" callback which is easier to wrap my head around. This will make future code to support IO::Socket::SSL-wrapped sockets easier-to-digest, since SSL_write() can require waiting on POLLIN events, and SSL_read() can require waiting on POLLOUT events. --- lib/PublicInbox/ParentPipe.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/ParentPipe.pm') diff --git a/lib/PublicInbox/ParentPipe.pm b/lib/PublicInbox/ParentPipe.pm index 25f13a82..a9f05fc1 100644 --- a/lib/PublicInbox/ParentPipe.pm +++ b/lib/PublicInbox/ParentPipe.pm @@ -16,6 +16,6 @@ sub new ($$$) { $self; } -sub event_read { $_[0]->{cb}->($_[0]) } +sub event_step { $_[0]->{cb}->($_[0]) } 1; -- cgit v1.2.3-24-ge0c7