From 0cd24fcf31948b642f7cc80364a8d28ee5059038 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 10 Oct 2022 21:26:09 +0200 Subject: [PATCH] remove unused imports --- cashu/mint/app.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cashu/mint/app.py b/cashu/mint/app.py index 9853598..900d216 100644 --- a/cashu/mint/app.py +++ b/cashu/mint/app.py @@ -1,21 +1,15 @@ -import asyncio import logging import sys -from fastapi import FastAPI, Request +from fastapi import FastAPI from loguru import logger from cashu.core.settings import DEBUG, VERSION -from cashu.lightning import WALLET -from cashu.mint.migrations import m001_initial from starlette_context.middleware import RawContextMiddleware -from starlette_context import context from starlette.middleware import Middleware -from starlette.requests import Request as StarletteRequest -from . import ledger from .router import router from .startup import load_ledger @@ -59,9 +53,6 @@ def create_app(config_object="core.settings") -> FastAPI: Middleware( RawContextMiddleware, ), - Middleware( - RawContextMiddleware, - ), ] app = FastAPI(