projects
/
scpubgit/Object-Remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use newer Future API, fix broken test
[scpubgit/Object-Remote.git]
/
lib
/
Object
/
Remote
/
Future.pm
diff --git
a/lib/Object/Remote/Future.pm
b/lib/Object/Remote/Future.pm
index
83aad96
..
966532f
100644
(file)
--- a/
lib/Object/Remote/Future.pm
+++ b/
lib/Object/Remote/Future.pm
@@
-99,8
+99,8
@@
sub AUTOLOAD {
my $invocant = shift;
my ($method) = our $AUTOLOAD =~ /^then::(.+)$/;
my @args = @_;
- return $invocant->and_then(sub {
- my ($obj) = $_[0]->get;
+ return $invocant->then(sub {
+ my ($obj) = @_;
return $obj->${\"start::${method}"}(@args);
});
}