Fix typo
This commit is contained in:
@@ -14,4 +14,5 @@ log_format = (
|
||||
"<g>{time:MM-DD HH:mm:ss}</g> |<lvl>{level:^8}</lvl>| {file}:{line} | {message}"
|
||||
)
|
||||
|
||||
# logger.add(SAFE_STDOUT, format=log_format, backtrace=True, diagnose=True, level="TRACE")
|
||||
logger.add(SAFE_STDOUT, format=log_format, backtrace=True, diagnose=True)
|
||||
|
||||
@@ -5,7 +5,7 @@ to avoid user dictionary access error
|
||||
|
||||
from typing import Optional, Any
|
||||
|
||||
from .worker_common import WOKER_PORT
|
||||
from .worker_common import WORKER_PORT
|
||||
from .worker_client import WorkerClient
|
||||
|
||||
from common.log import logger
|
||||
@@ -49,7 +49,7 @@ def unset_user_dict():
|
||||
# initialize module when imported
|
||||
|
||||
|
||||
def initialize(port: int = WOKER_PORT):
|
||||
def initialize(port: int = WORKER_PORT):
|
||||
import time
|
||||
import socket
|
||||
import sys
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import argparse
|
||||
|
||||
from .worker_server import WorkerServer
|
||||
from .worker_common import WOKER_PORT
|
||||
from .worker_common import WORKER_PORT
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--port", type=int, default=WOKER_PORT)
|
||||
parser.add_argument("--port", type=int, default=WORKER_PORT)
|
||||
args = parser.parse_args()
|
||||
server = WorkerServer()
|
||||
server.start_server(port=args.port)
|
||||
|
||||
@@ -3,7 +3,7 @@ from enum import IntEnum, auto
|
||||
import socket
|
||||
import json
|
||||
|
||||
WOKER_PORT: Final[int] = 7861
|
||||
WORKER_PORT: Final[int] = 7861
|
||||
HEADER_SIZE: Final[int] = 4
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user