mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-05 21:20:51 +00:00
27 lines
679 B
Python
27 lines
679 B
Python
import logging
|
|
import asyncio
|
|
import shelve
|
|
from collections import OrderedDict
|
|
import pickle,os
|
|
|
|
NODES_PRIME = [("128.232.229.63",8467), ("68.66.241.111",8467)]
|
|
#68.66.224.46
|
|
|
|
def logger():
|
|
import logging
|
|
handler = logging.StreamHandler()
|
|
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
|
handler.setFormatter(formatter)
|
|
logger = logging.getLogger(__file__)
|
|
logger.addHandler(handler)
|
|
logger.setLevel(logging.DEBUG)
|
|
return logger
|
|
|
|
def boot_lonely_selfless_node(port=8467):
|
|
async def go():
|
|
from api import Api,PORT_LISTEN
|
|
API = Api()
|
|
await API.connect_forever(8467)
|
|
asyncio.run(go())
|
|
|