Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Supplies treat values through them as items.
So use .push, not .append.
  • Loading branch information
jnthn committed Nov 25, 2015
1 parent 0c4e50f commit 8f9a7a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/Supply.pm
Expand Up @@ -764,7 +764,7 @@ my class Supply {
}

whenever self -> \val {
@batched.append: val unless $skip && $skip--;
@batched.push: val unless $skip && $skip--;
if @batched.elems == $elems {
flush;
next-batch;
Expand Down Expand Up @@ -800,10 +800,10 @@ my class Supply {
if $this_time != $last_time {
flush if @batched;
$last_time = $this_time;
@batched.append: val;
@batched.push: val;
}
else {
@batched.append: val;
@batched.push: val;
flush if @batched.elems == $elems;
}
LAST { final-flush; }
Expand All @@ -816,14 +816,14 @@ my class Supply {
flush if @batched;
$last_time = $this_time;
}
@batched.append: val;
@batched.push: val;
LAST { final-flush; }
}
}
}
else { # just $elems
whenever self -> \val {
@batched.append: val;
@batched.push: val;
flush if @batched.elems == $elems;
LAST { final-flush; }
}
Expand Down

0 comments on commit 8f9a7a9

Please sign in to comment.