Skip to content

Commit 5d481a4

Browse files
committed
Fix regular old commands
1 parent 88676cd commit 5d481a4

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

aikido_zen/background_process/commands/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def process_incoming_command(connection_manager, obj, conn, queue):
2323
inbound_request = obj[1]
2424
if inbound_identifier in commands_map:
2525
func = commands_map[inbound_identifier]
26-
return conn.send(func(connection_manager, inbound_identifier, queue))
26+
return conn.send(func(connection_manager, inbound_request))
2727

2828
for cmd in modern_commands:
2929
if cmd.identifier() == inbound_identifier:

aikido_zen/background_process/commands/check_firewall_lists.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
"""Exports process_check_firewall_lists"""
22

3-
from aikido_zen.background_process.cloud_connection_manager import (
4-
CloudConnectionManager,
5-
)
63

7-
8-
def process_check_firewall_lists(
9-
connection_manager: CloudConnectionManager, data, conn, queue=None
10-
):
4+
def process_check_firewall_lists(connection_manager, data):
115
"""
126
Checks whether an IP is blocked
137
data: {"ip": string, "user-agent": string}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""exports `process_ping`"""
22

33

4-
def process_ping(connection_manager, data, queue=None):
4+
def process_ping(connection_manager, data):
55
"""when main process quits , or during testing etc"""
66
return "Received"

aikido_zen/background_process/commands/read_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from aikido_zen.helpers.logging import logger
44

55

6-
def process_read_property(connection_manager, data, queue=None):
6+
def process_read_property(connection_manager, data):
77
"""
88
Takes in one arg : name of property on connection_manager, tries to read it.
99
Meant to get config props

aikido_zen/background_process/commands/should_ratelimit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import aikido_zen.ratelimiting as ratelimiting
44

55

6-
def process_should_ratelimit(connection_manager, data, queue=None):
6+
def process_should_ratelimit(connection_manager, data):
77
"""
88
Called to check if the context passed along as data should be rate limited
99
data object should be a dict including route_metadata, remote_address and user

aikido_zen/background_process/commands/sync_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from aikido_zen.background_process.packages import PackagesStore
55

66

7-
def process_sync_data(connection_manager, data, conn, queue=None):
7+
def process_sync_data(connection_manager, data):
88
"""
99
Synchronizes data between the thread-local cache (with a TTL of usually 1 minute) and the
1010
background thread. Which data gets synced?

0 commit comments

Comments
 (0)