mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
make format
This commit is contained in:
@@ -3,21 +3,17 @@ import sys
|
||||
|
||||
from fastapi import FastAPI
|
||||
from loguru import logger
|
||||
from starlette.middleware import Middleware
|
||||
from starlette.middleware.base import BaseHTTPMiddleware
|
||||
from starlette_context import context
|
||||
from starlette_context.middleware import RawContextMiddleware
|
||||
|
||||
from cashu.core.settings import DEBUG, VERSION
|
||||
|
||||
from starlette_context.middleware import RawContextMiddleware
|
||||
from starlette.middleware import Middleware
|
||||
from starlette_context import context
|
||||
|
||||
|
||||
from .router import router
|
||||
from .startup import load_ledger
|
||||
|
||||
|
||||
from starlette.middleware.base import BaseHTTPMiddleware
|
||||
|
||||
|
||||
class CustomHeaderMiddleware(BaseHTTPMiddleware):
|
||||
"""
|
||||
Middleware for starlette that can set the context from request headers
|
||||
|
||||
@@ -6,10 +6,11 @@ import math
|
||||
from typing import Dict, List, Set
|
||||
|
||||
from loguru import logger
|
||||
from starlette_context import context
|
||||
|
||||
import cashu.core.legacy as legacy
|
||||
import cashu.core.b_dhke as b_dhke
|
||||
import cashu.core.bolt11 as bolt11
|
||||
import cashu.core.legacy as legacy
|
||||
from cashu.core.base import (
|
||||
BlindedMessage,
|
||||
BlindedSignature,
|
||||
@@ -37,8 +38,6 @@ from cashu.mint.crud import (
|
||||
update_lightning_invoice,
|
||||
)
|
||||
|
||||
from starlette_context import context
|
||||
|
||||
|
||||
class Ledger:
|
||||
def __init__(self, secret_key: str, db: str, derivation_path=""):
|
||||
|
||||
Reference in New Issue
Block a user