Skip to content

Commit

Permalink
Really fix end detection this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmroche authored and askmike committed Oct 1, 2017
1 parent 71593c4 commit 10b7675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importers/exchanges/bitfinex.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var handleFetch = (unk, trades) => {
var lastBatch = batch;

// in this case we've finished the last batch and are complete
if (batch_end.utc().seconds() === end.utc().seconds()) {
if (batch_end.isSame(end)) {
fetcher.emit('done');
}
// the batch if complete, lets advance to the next set
Expand Down

0 comments on commit 10b7675

Please sign in to comment.