More! Events!
This commit is contained in:
@@ -69,7 +69,9 @@ class BrokerAdminHandlers:
|
||||
params: dict[str, Any] | None = None,
|
||||
) -> dict[str, Any]:
|
||||
try:
|
||||
return await self.service.invoke_method(connection_id, method, params=params)
|
||||
return await self.service.invoke_method(
|
||||
connection_id, method, params=params
|
||||
)
|
||||
except Exception as exc:
|
||||
return {
|
||||
"connection_id": connection_id,
|
||||
@@ -104,4 +106,4 @@ class BrokerAdminHandlers:
|
||||
}
|
||||
|
||||
def get_broker_events(self) -> list[dict[str, Any]]:
|
||||
return [asdict(event) for event in self.service.list_events()]
|
||||
return [asdict(event) for event in self.service.list_events()]
|
||||
|
||||
@@ -33,4 +33,4 @@ class ConfigManager(Protocol):
|
||||
enabled: bool,
|
||||
) -> dict[str, Any]: ...
|
||||
|
||||
def remove_connection(self, connection_id: str) -> dict[str, Any]: ...
|
||||
def remove_connection(self, connection_id: str) -> dict[str, Any]: ...
|
||||
|
||||
@@ -108,4 +108,4 @@ class TransparentAdminHandlers:
|
||||
)
|
||||
|
||||
def remove_connection(self, connection_id: str) -> dict[str, Any]:
|
||||
return self.runtime.require_manager().remove_connection(connection_id)
|
||||
return self.runtime.require_manager().remove_connection(connection_id)
|
||||
|
||||
Reference in New Issue
Block a user