Skip to content

Commit

Permalink
Use named parameters when creating an initial service config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Aug 21, 2024
1 parent ce381ee commit a3e65ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aikido_firewall/background_process/reporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ def __init__(self, block, api, token, serverless):
self.token = token # Should be instance of the Token class!
self.routes = Routes(200)
self.hostnames = Hostnames(200)
self.conf = ServiceConfig([], get_unixtime_ms(), [], [], True)
self.conf = ServiceConfig(

Check warning on line 37 in aikido_firewall/background_process/reporter/__init__.py

View check run for this annotation

Codecov / codecov/patch

aikido_firewall/background_process/reporter/__init__.py#L37

Added line #L37 was not covered by tests
endpoints=[],
last_updated_at=get_unixtime_ms(),
blocked_uids=[],
bypassed_ips=[],
received_any_stats=True,
)
self.rate_limiter = RateLimiter(
max_items=5000, time_to_live_in_ms=120 * 60 * 1000 # 120 minutes
)
Expand Down

0 comments on commit a3e65ab

Please sign in to comment.