From 34e9b4a7736970670005a708b33dec09ce71b7a7 Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Tue, 18 Aug 2020 16:00:14 +0100 Subject: [PATCH] removing second connection for now ... --- app/main.py | 4 ++-- p2p/api.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/main.py b/app/main.py index af13503..3c3ee38 100644 --- a/app/main.py +++ b/app/main.py @@ -57,8 +57,8 @@ logger.addHandler(handler) logger.setLevel(logging.DEBUG) def log(*args): - #with open('log.txt','a+') as of: - # of.write(' '.join([str(x) for x in args])+'\n') + # with open('log.txt','a+') as of: + # of.write(' '.join([str(x) for x in args])+'\n') line = ' '.join(str(x) for x in args) logger.debug(line) diff --git a/p2p/api.py b/p2p/api.py index b9fb870..cfbf1e8 100644 --- a/p2p/api.py +++ b/p2p/api.py @@ -46,10 +46,10 @@ class Api(object): #self.connect() self.app_storage = app_storage # self.node = self.connect() - log('starting selfless daemon...') - self.selfless = Thread(target=start_selfless_thread) - self.selfless.daemon = True - self.selfless.start() + # log('starting selfless daemon...') + # self.selfless = Thread(target=start_selfless_thread) + # self.selfless.daemon = True + # self.selfless.start() pass def connect(self):