def main():
"""Parse command line arguments and start the server."""
if FLAGS.riot_api_token == "":
logging.critical("Required argument 'riot_api_token' is empty.")
return 1
server, _ = start_server(FLAGS.riot_api_token, FLAGS.port,
FLAGS.max_workers)
try:
while True:
time.sleep(60 * 60 * 24)
except KeyboardInterrupt:
server.stop(0)
评论列表
文章目录