Skip to content

Commit 62776d6

Browse files
committed
删除无用代码
1 parent 6db9776 commit 62776d6

File tree

5 files changed

+6
-450
lines changed

5 files changed

+6
-450
lines changed

anp_proxy/common/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
"""Common utilities and configurations for ANP Proxy."""
22

3-
from .auth import AuthManager
43
from .config import ANPConfig, GatewayConfig, ReceiverConfig
54
from .constants import DEFAULT_CHUNK_SIZE, DEFAULT_HTTP_PORT, DEFAULT_WSS_PORT
65

76
__all__ = [
87
"ANPConfig",
98
"GatewayConfig",
109
"ReceiverConfig",
11-
"AuthManager",
1210
"DEFAULT_CHUNK_SIZE",
1311
"DEFAULT_WSS_PORT",
1412
"DEFAULT_HTTP_PORT",

anp_proxy/common/auth.py

Lines changed: 0 additions & 252 deletions
This file was deleted.

anp_proxy/gateway/server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from fastapi import FastAPI, Request
88
from fastapi.responses import Response
99

10-
from ..common.auth import AuthManager
1110
from ..common.config import GatewayConfig
1211
from ..common.log_base import get_logger
1312
from ..common.utils import GracefulShutdown
@@ -35,10 +34,9 @@ def __init__(self, config: GatewayConfig) -> None:
3534
config: Gateway configuration
3635
"""
3736
self.config = config
38-
self.auth_manager = AuthManager(config.auth)
3937

4038
# Initialize components
41-
self.websocket_manager = WebSocketManager(config, self.auth_manager)
39+
self.websocket_manager = WebSocketManager(config)
4240
self.request_mapper = RequestMapper(config.chunk_size)
4341
self.response_handler = ResponseHandler(config.timeout)
4442

0 commit comments

Comments
 (0)