Skip to content

Commit

Permalink
Merge pull request #2679 from opentensor/fix/2188-configure_uvicorn_e…
Browse files Browse the repository at this point in the history
…vent_loop

fix(2188): configure uvicorn event loop
  • Loading branch information
thewhaleking authored Feb 19, 2025
2 parents 7d511a4 + 6302a1f commit 4bebb26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bittensor/core/axon.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,11 @@ def __init__(
self.app = FastAPI()
log_level = "trace" if logging.__trace_on__ else "critical"
self.fast_config = uvicorn.Config(
self.app, host="0.0.0.0", port=self._config.axon.port, log_level=log_level
self.app,
host="0.0.0.0",
log_level=log_level,
loop="none",
port=self._config.axon.port,
)
self.fast_server = FastAPIThreadedServer(config=self.fast_config)
self.router = APIRouter()
Expand Down

0 comments on commit 4bebb26

Please sign in to comment.