mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 04:26:45 +00:00
💥 remove builtin adapter auto register
This commit is contained in:
@ -123,7 +123,8 @@ class BaseDriver(abc.ABC):
|
||||
* ``*args``
|
||||
* ``**kwargs``
|
||||
"""
|
||||
raise NotImplementedError
|
||||
logger.opt(
|
||||
colors=True).debug(f"Loaded adapters: {', '.join(self._adapters)}")
|
||||
|
||||
@abc.abstractmethod
|
||||
async def _handle_http(self):
|
||||
|
@ -98,6 +98,7 @@ class Driver(BaseDriver):
|
||||
app: Optional[str] = None,
|
||||
**kwargs):
|
||||
"""使用 ``uvicorn`` 启动 FastAPI"""
|
||||
super().run(host, port, app, **kwargs)
|
||||
LOGGING_CONFIG = {
|
||||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
|
Reference in New Issue
Block a user