give stats module more specific name
This commit is contained in:
parent
b1a7641db9
commit
11d97a12d0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
1
src/onionrstatistics/__init__.py
Normal file
1
src/onionrstatistics/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .transports import tor
|
Loading…
Reference in New Issue
Block a user