Loading sjrpc/client/simple.py +3 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ class SimpleRpcClient(ConnectionManager): self._on_disconnect = on_disconnect self._connection = connection self._connection.set_handler(default_handler) self.register(self._connection) @classmethod Loading @@ -45,7 +46,8 @@ class SimpleRpcClient(ConnectionManager): connection = RpcConnection.from_addr(addr, port, None, enable_ssl=enable_ssl, cert=cert) client = cls(connection, default_handler, on_disconnect) client = cls(connection, default_handler=default_handler, on_disconnect=on_disconnect) connection._manager = client return client Loading Loading
sjrpc/client/simple.py +3 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ class SimpleRpcClient(ConnectionManager): self._on_disconnect = on_disconnect self._connection = connection self._connection.set_handler(default_handler) self.register(self._connection) @classmethod Loading @@ -45,7 +46,8 @@ class SimpleRpcClient(ConnectionManager): connection = RpcConnection.from_addr(addr, port, None, enable_ssl=enable_ssl, cert=cert) client = cls(connection, default_handler, on_disconnect) client = cls(connection, default_handler=default_handler, on_disconnect=on_disconnect) connection._manager = client return client Loading