lib/fbe/middleware/quota.rb in fbe-0.0.76 vs lib/fbe/middleware/quota.rb in fbe-0.0.77
- old
+ new
@@ -23,9 +23,13 @@
# SOFTWARE.
require 'faraday'
# Faraday Middleware that monitors GitHub API rate limits.
+#
+# Author:: Yegor Bugayenko (yegor256@gmail.com)
+# Copyright:: Copyright (c) 2024 Zerocracy
+# License:: MIT
class Fbe::Middleware::Quota < Faraday::Middleware
def initialize(app, loog: Loog::NULL, pause: 60, limit: 100, rate: 5)
super(app)
@requests = 0
@app = app