mirror of
https://github.com/simon987/chan_feed.git
synced 2025-12-14 04:59:02 +00:00
per-chan rate limits
This commit is contained in:
4
run.py
4
run.py
@@ -19,7 +19,7 @@ MONITORING = True
|
||||
|
||||
class ChanScanner:
|
||||
def __init__(self, helper):
|
||||
self.web = Web(monitoring if MONITORING else None)
|
||||
self.web = Web(monitoring if MONITORING else None, rps=helper.rps)
|
||||
self.helper = helper
|
||||
self.state = ChanState()
|
||||
|
||||
@@ -140,7 +140,7 @@ class ChanState:
|
||||
|
||||
def publish_worker(queue: Queue, helper):
|
||||
channel = connect()
|
||||
web = Web(monitoring if MONITORING else None)
|
||||
web = Web(monitoring if MONITORING else None, rps=helper.rps)
|
||||
|
||||
while True:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user