summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/ResultCache.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-06-27 18:21:59 -0400
committerJesse Luehrs <doy@tozt.net>2013-06-27 18:21:59 -0400
commit6bd057874f99aeb2c0d243880f3333a64d96045f (patch)
treecff8f85b8a3a784a582774b3ab9f160a74032c68 /lib/Reply/Plugin/ResultCache.pm
parentca1aa50a460e9a179168dfb211f3e32751f69bb7 (diff)
downloadreply-6bd057874f99aeb2c0d243880f3333a64d96045f.tar.gz
reply-6bd057874f99aeb2c0d243880f3333a64d96045f.zip
clean up the publisher stuff some more
Diffstat (limited to 'lib/Reply/Plugin/ResultCache.pm')
-rw-r--r--lib/Reply/Plugin/ResultCache.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Reply/Plugin/ResultCache.pm b/lib/Reply/Plugin/ResultCache.pm
index 713a7fd..beb884b 100644
--- a/lib/Reply/Plugin/ResultCache.pm
+++ b/lib/Reply/Plugin/ResultCache.pm
@@ -28,7 +28,6 @@ sub new {
my $self = $class->SUPER::new(@_);
$self->{results} = [];
$self->{result_name} = $opts{variable} || 'res';
- $self->{publisher} = $opts{publisher};
return $self;
}
@@ -45,7 +44,7 @@ sub execute {
push @{ $self->{results} }, \@res;
}
- $self->{publisher}->(
+ $self->publish(
'lexical_environment',
result_cache => {
"\@$self->{result_name}" => $self->{results},