Skip to content

Commit

Permalink
fix: initialization with interval of 1 value
Browse files Browse the repository at this point in the history
  • Loading branch information
dsalahutdinov committed Jul 18, 2017
1 parent 2221aef commit b70df32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/treasury/fields/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def interval_initialize

logger.info "min_id = #{min_id}, max_id = #{max_id}, ~ count = #{max_id - min_id}"

while min_id < max_id
while min_id <= max_id
exit unless check_terminate

next_id = min_id + batch_size - 1
Expand Down

0 comments on commit b70df32

Please sign in to comment.