mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Reformat code
This commit is contained in:
parent
0c5e07c6b9
commit
207c2d4dcc
4 changed files with 15 additions and 14 deletions
|
@ -1,14 +1,13 @@
|
|||
from typing import *
|
||||
|
||||
import logging
|
||||
import multiprocessing
|
||||
import time
|
||||
from typing import *
|
||||
|
||||
import click
|
||||
import toml
|
||||
|
||||
import royalnet.utils as ru
|
||||
import royalnet.serf as rs
|
||||
import royalnet.utils as ru
|
||||
|
||||
try:
|
||||
import royalnet.serf.telegram as rst
|
||||
|
@ -124,6 +123,7 @@ def run(config_file: str):
|
|||
"serf_cfg": serf_cfg,
|
||||
}
|
||||
)
|
||||
|
||||
processes[f"Serf.{name}"] = ru.RoyalnetProcess(serf_constructor, None)
|
||||
log.info(f"Serf.{name}: Enabled")
|
||||
|
||||
|
@ -154,6 +154,7 @@ def run(config_file: str):
|
|||
"constellation_cfg": config["Constellation"],
|
||||
}
|
||||
)
|
||||
|
||||
processes["Constellation"] = ru.RoyalnetProcess(constellation_constructor, None)
|
||||
|
||||
log.info("Constellation: Enabled")
|
||||
|
|
|
@ -54,15 +54,15 @@ class Config:
|
|||
|
||||
@classmethod
|
||||
def from_config(
|
||||
cls, *,
|
||||
name: str,
|
||||
address: str,
|
||||
port: int,
|
||||
secret: str,
|
||||
secure: bool = False,
|
||||
path: str = "/",
|
||||
**_,
|
||||
):
|
||||
cls, *,
|
||||
name: str,
|
||||
address: str,
|
||||
port: int,
|
||||
secret: str,
|
||||
secure: bool = False,
|
||||
path: str = "/",
|
||||
**_,
|
||||
):
|
||||
return cls(
|
||||
name=name,
|
||||
address=address,
|
||||
|
|
|
@ -2,13 +2,13 @@ from .asyncify import asyncify
|
|||
from .formatters import andformat, underscorize, ytdldateformat, numberemojiformat, ordinalformat
|
||||
from .log import init_logging
|
||||
from .multilock import MultiLock
|
||||
from .royalnetprocess import RoyalnetProcess
|
||||
from .royaltyping import JSON
|
||||
from .sentry import init_sentry, sentry_exc, sentry_wrap, sentry_async_wrap
|
||||
from .sleep_until import sleep_until
|
||||
from .strip_tabs import strip_tabs
|
||||
from .taskslist import TaskList
|
||||
from .urluuid import to_urluuid, from_urluuid
|
||||
from .royalnetprocess import RoyalnetProcess
|
||||
|
||||
__all__ = [
|
||||
"asyncify",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from typing import *
|
||||
import dataclasses
|
||||
import multiprocessing
|
||||
from typing import *
|
||||
|
||||
|
||||
@dataclasses.dataclass()
|
||||
|
|
Loading…
Reference in a new issue