X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FLogDestination.pm;h=67f436ada344b8e89635bcd88af228ec5f731d30;hp=af4235b7ff081e2932edd56c5bfb2533830e1c5f;hb=5d59cb9859e004df5cde5d83aa7230e621a28b95;hpb=a63cd862186adf328e26dd1294e7a3b1adc42ed6 diff --git a/lib/Object/Remote/LogDestination.pm b/lib/Object/Remote/LogDestination.pm index af4235b..67f436a 100644 --- a/lib/Object/Remote/LogDestination.pm +++ b/lib/Object/Remote/LogDestination.pm @@ -7,15 +7,15 @@ has logger => ( is => 'ro', required => 1 ); has subscriptions => ( is => 'ro', required => 1, default => sub { [] } ); sub select { - my ($self, $router, $selector) = @_; - my $subscription = $router->subscribe($self->logger, $selector); - push(@{ $self->subscriptions }, $subscription); - return $subscription; + my ($self, $router, $selector) = @_; + my $subscription = $router->subscribe($self->logger, $selector); + push(@{ $self->subscriptions }, $subscription); + return $subscription; } sub connect { - my ($self, $router) = @_; - return $self->select($router, sub { 1 }); + my ($self, $router) = @_; + return $self->select($router, sub { 1 }); } 1;