use Module::Runtime qw(use_module);
use Object::Remote::Future;
-use Object::Remote::Logging qw(:log :dlog );
+use Object::Remote::Logging qw(:log :dlog router);
use Moo::Role;
requires '_open2_for';
has timeout => (is => 'ro', default => sub { 10 });
+BEGIN { router()->exclude_forwarding; }
+
sub connect {
my $self = shift;
Dlog_debug { "Preparing to create connection with args of: $_" } @_;
->watch_time(
after => $self->timeout,
code => sub {
- Dlog_trace { "Connection timeout timer has fired for child pid '$child_pid'; is_ready: $_" } $f->is_ready;
+ Dlog_trace {"Connection timeout timer has fired for child pid '$child_pid'; is_ready: $_" } $f->is_ready;
unless($f->is_ready) {
log_warn { "Connection with child pid '$child_pid' has timed out" };
- $f->fail("Connection timed out") unless $f->is_ready;
+ $f->fail("Connection timed out") unless $f->is_ready;
}
undef($channel);