summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/ResultCache.pm
diff options
context:
space:
mode:
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},