not ready for uvloop

This commit is contained in:
Danglewood
2025-01-02 01:29:03 -08:00
parent 18bb17f04c
commit 27a67a042d
4 changed files with 2 additions and 9 deletions

View File

@@ -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"

View File

@@ -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