Skip to content

Commit

Permalink
#11 conclude.threshold removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 5, 2024
1 parent cbb4d20 commit 7ba8279
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/fbe/conclude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def initialize(fb, judge, loog)
@loog = loog
@query = nil
@follows = []
@threshold = 9999
@quota_aware = false
end

Expand All @@ -57,10 +56,6 @@ def on(query)
@query = query
end

def threshold(max)
@threshold = max
end

def follow(props)
@follows = props.split
end
Expand Down Expand Up @@ -96,7 +91,6 @@ def roll(&)
@fb.txn do |fbt|
fbt.query(@query).each do |a|
throw :stop if @quota_aware && Fbe.octo(loog: @loog).off_quota
throw :stop if passed >= @threshold
n = yield fbt, a
@loog.info("#{n.what}: #{n.details}") unless n.nil?
passed += 1
Expand Down

0 comments on commit 7ba8279

Please sign in to comment.