give stats module more specific name

This commit is contained in:
Kevin Froman 2020-01-27 02:20:09 -06:00
parent b1a7641db9
commit 11d97a12d0
8 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ import unpaddedbase32
from httpapi import apiutils
import onionrcrypto, config
from netcontroller import NetController
from statistics.serializeddata import SerializedData
from onionrstatistics.serializeddata import SerializedData
from onionrutils import mnemonickeys
from onionrutils import bytesconverter
from etc import onionrvalues

View File

@ -4,9 +4,8 @@ SSE API for node client access
"""
from flask import g, Blueprint
from gevent import sleep
#from time import sleep
from statistics.transports.tor import TorStats
from onionrstatistics.transports.tor import TorStats
from .. import wrapper
"""
This program is free software: you can redistribute it and/or modify

View File

@ -13,7 +13,8 @@ from gevent import spawn
import toomanyobjs
import config
from statistics.transports.tor import TorStats
import onionrstatistics
from onionrstatistics import serializeddata
import apiservers
import logger
import communicator
@ -25,7 +26,6 @@ from etc import onionrvalues, cleanup
from onionrcrypto import getourkeypair
from utils import hastor, logoheader
from . import version
from statistics import serializeddata
import runtests
from httpapi import daemoneventsapi
"""
@ -106,7 +106,7 @@ def daemon():
apiServerIP=apiHost)
shared_state.add(net)
shared_state.get(TorStats)
shared_state.get(onionrstatistics.tor.TorStats)
if not offline_mode:
logger.info('Tor is starting...', terminal=True)

View File

@ -0,0 +1 @@
from .transports import tor