summaryrefslogtreecommitdiff
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/rpc.py b/rpc/rpc.py
index 18b86d6..e8a3f9a 100644
--- a/rpc/rpc.py
+++ b/rpc/rpc.py
@@ -12,8 +12,8 @@ load_dotenv(find_dotenv())
class CortexRPC(object):
def __init__(self, get_fn, set_fn, ready_fn):
super().__init__()
- self._get_fn = staticmethod(get_fn)
- self._set_fn = staticmethod(set_fn)
+ self._get_fn = get_fn
+ self._set_fn = set_fn
self.working = False
self.connect(ready_fn)
@@ -66,7 +66,7 @@ class CortexRPC(object):
return 'ok'
"""
- def send_param(self, key, value):
+ def set_param(self, key, value):
print('aloha. {}: {}'.format(key, value))
if self._set_fn is not None:
self._set_fn(key, value)