X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FLogDestination.pm;h=67f436ada344b8e89635bcd88af228ec5f731d30;hb=8d757beb3bd870615c5a5b3076f7dc72ae9cc637;hp=68f4bb353de2ab589d031d33018d0a115fefd28c;hpb=f7ea4120db80a6feb33053e6bcb0f983b71f7394;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/LogDestination.pm b/lib/Object/Remote/LogDestination.pm index 68f4bb3..67f436a 100644 --- a/lib/Object/Remote/LogDestination.pm +++ b/lib/Object/Remote/LogDestination.pm @@ -7,15 +7,17 @@ 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; \ No newline at end of file +1; + +