Remove useless on_msg function in subscribe_logs (#380)

This commit is contained in:
J. Nick Koston 2023-02-12 16:42:14 -06:00 committed by GitHub
parent e4cfef5cd4
commit f99db3577c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -384,10 +384,6 @@ class APIClient:
dump_config: Optional[bool] = None,
) -> None:
self._check_authenticated()
def on_msg(msg: SubscribeLogsResponse) -> None:
on_log(msg)
req = SubscribeLogsRequest()
if log_level is not None:
req.level = log_level
@ -395,7 +391,7 @@ class APIClient:
req.dump_config = dump_config
assert self._connection is not None
self._connection.send_message_callback_response(
req, on_msg, (SubscribeLogsResponse,)
req, on_log, (SubscribeLogsResponse,)
)
async def subscribe_service_calls(