removed unnecessary imports in onionrpeers
This commit is contained in:
parent
021fa87f30
commit
f5e613134b
@ -17,13 +17,9 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
'''
|
'''
|
||||||
import sqlite3
|
|
||||||
import core, config, logger
|
|
||||||
from onionrutils import epoch
|
|
||||||
from . import scoresortedpeerlist, peercleanup
|
from . import scoresortedpeerlist, peercleanup
|
||||||
get_score_sorted_peer_list = scoresortedpeerlist.get_score_sorted_peer_list
|
get_score_sorted_peer_list = scoresortedpeerlist.get_score_sorted_peer_list
|
||||||
peer_cleanup = peercleanup.peer_cleanup
|
peer_cleanup = peercleanup.peer_cleanup
|
||||||
config.reload()
|
|
||||||
|
|
||||||
class PeerProfiles:
|
class PeerProfiles:
|
||||||
'''
|
'''
|
||||||
@ -37,8 +33,6 @@ class PeerProfiles:
|
|||||||
self.failure = 0
|
self.failure = 0
|
||||||
self.connectTime = None
|
self.connectTime = None
|
||||||
|
|
||||||
if not isinstance(coreInst, core.Core):
|
|
||||||
raise TypeError("coreInst must be a type of core.Core")
|
|
||||||
self.coreInst = coreInst
|
self.coreInst = coreInst
|
||||||
|
|
||||||
self.loadScore()
|
self.loadScore()
|
||||||
|
Loading…
Reference in New Issue
Block a user