mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Remove remaining dead timing variables and imports
This commit is contained in:
4 files changed
-10
No files matched your search
@@ -43,8 +43,6 @@ async def get_user_from_token(
|
||||
token: Optional[str] = Query(None, include_in_schema=False)
|
||||
) -> schemas.User:
|
||||
|
||||
import time
|
||||
_t0 = time.time()
|
||||
|
||||
if bearer_token:
|
||||
# bearer token is used first, then any token passed as a URL parameter
|
||||
|
||||
@@ -28,8 +28,6 @@ log = logging.getLogger(__name__)
|
||||
|
||||
async def get_db_session(request: HTTPConnection) -> AsyncSession:
|
||||
|
||||
import time
|
||||
_t0 = time.time()
|
||||
async with AsyncSession(request.app.state._db_engine, expire_on_commit=False) as session:
|
||||
try:
|
||||
yield session
|
||||
|
||||
Reference in new issue
Block a user