Switched event loop to uvloop for improved async performance.
Audit / Dependencies (push) Successful in 7s
CI / Formatting (push) Failing after 4s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 12s
CI / Tests (Python 3.13) (push) Successful in 12s
CI / Tests (Python 3.14) (push) Successful in 9s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 4s
Audit / Dependencies (push) Successful in 7s
CI / Formatting (push) Failing after 4s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 12s
CI / Tests (Python 3.13) (push) Successful in 12s
CI / Tests (Python 3.14) (push) Successful in 9s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 4s
This commit is contained in:
+3
-1
@@ -26,6 +26,8 @@ import sys
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import uvloop
|
||||
|
||||
from . import __version__
|
||||
from .api.config import Config
|
||||
from .bot import Owlbot, StartupError
|
||||
@@ -223,7 +225,7 @@ Examples:
|
||||
logger.info("Received shutdown signal.")
|
||||
|
||||
try:
|
||||
asyncio.run(_run())
|
||||
uvloop.run(_run())
|
||||
except StartupError as e:
|
||||
logger.error(str(e))
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user