switch from CPS::Future to Future
[scpubgit/Object-Remote.git] / lib / Object / Remote / ReadChannel.pm
index 5d7e9f0..d2008db 100644 (file)
@@ -1,10 +1,11 @@
 package Object::Remote::ReadChannel;
 
-use CPS::Future;
 use Scalar::Util qw(weaken openhandle);
-use Object::Remote::Logging qw(:log :dlog);
+use Object::Remote::Logging qw(:log :dlog router );
 use Moo;
 
+BEGIN { router()->exclude_forwarding }
+
 has fh => (
   is => 'ro', required => 1,
   trigger => sub {
@@ -54,14 +55,12 @@ sub DEMOLISH {
   my ($self, $gd) = @_;
   return if $gd;
   log_trace { "read channel is being demolished" };
-   
+
   Object::Remote->current_loop
                 ->unwatch_io(
                     handle => $self->fh,
                     on_read_ready => 1
                   );
-                  
-  
 }
 
 1;