Skip to content

Commit

Permalink
Reformatted file.
Browse files Browse the repository at this point in the history
  • Loading branch information
craig8 committed Oct 3, 2022
1 parent d0f999c commit 031642e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ieee_2030_5/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@
# UNITED STATES DEPARTMENT OF ENERGY under Contract DE-AC05-76RL01830
# -------------------------------------------------------------------------------

import logging
import os
import socket
import sys
import threading

from argparse import ArgumentParser
import logging
from pathlib import Path
import socket
import sys
from time import sleep

import yaml
Expand All @@ -56,7 +55,6 @@
from ieee_2030_5.flask_server import build_server
from ieee_2030_5.server.server_constructs import initialize_2030_5


_log = logging.getLogger()


Expand All @@ -67,15 +65,16 @@ def __init__(self, server: BaseWSGIServer):
self.server = server

def run(self):
_log.info('starting server')
_log.info(f'starting server on {self.server.host}:{self.server.port}')
self.server.serve_forever()

def shutdown(self):
_log.info("shutting down server")
self.server.shutdown()


def get_tls_repository(cfg: ServerConfiguration, create_certificates_for_devices: bool = True) -> TLSRepository:
def get_tls_repository(cfg: ServerConfiguration,
create_certificates_for_devices: bool = True) -> TLSRepository:
tlsrepo = TLSRepository(cfg.tls_repository,
cfg.openssl_cnf,
cfg.server_hostname,
Expand Down

0 comments on commit 031642e

Please sign in to comment.