refactor: split large methods
This commit is contained in:
parent
62641b56a6
commit
414ae16cb0
2 changed files with 86 additions and 77 deletions
|
|
@ -121,6 +121,7 @@ class Relay:
|
|||
def close_subscription(self, id: str) -> None:
|
||||
with self.lock:
|
||||
self.subscriptions.pop(id)
|
||||
self.publish(json.dumps(["CLOSE", id]))
|
||||
|
||||
def to_json_object(self) -> dict:
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue