mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-29 20:53:54 +00:00
not ready for uvloop
This commit is contained in:
@@ -10,6 +10,7 @@ from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
import uvicorn
|
||||
|
||||
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
|
||||
from openbb_core.provider.utils.websockets.database import (
|
||||
CHECK_FOR,
|
||||
@@ -23,6 +24,7 @@ from openbb_core.provider.utils.websockets.helpers import (
|
||||
)
|
||||
from starlette.websockets import WebSocketState
|
||||
|
||||
|
||||
kwargs = parse_kwargs()
|
||||
|
||||
HOST = kwargs.pop("host", None) or "localhost"
|
||||
|
||||
@@ -8,13 +8,10 @@ from contextlib import asynccontextmanager
|
||||
from datetime import timedelta
|
||||
from typing import TYPE_CHECKING, Any, Iterable, Optional, Union
|
||||
|
||||
import uvloop
|
||||
from openbb_core.app.model.abstract.error import OpenBBError
|
||||
from openbb_core.provider.utils.helpers import run_async
|
||||
from openbb_core.provider.utils.websockets.helpers import kill_thread
|
||||
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
Reference in New Issue
Block a user