Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
apply pylint recommendation and fix naming for only-specimen
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Nov 23, 2023
1 parent 645f875 commit 93cf97b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/dbmanspecimen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import threading
import time
import traceback
import psycopg2
import logformat
Expand Down
18 changes: 0 additions & 18 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import logging
import threading
import time
import sys
import os

from dotenv import load_dotenv
from dbmanspecimen import DBManagerSpecimen
from dbmanresult import DBManagerResult
from contract import ProofChainContract
from finalizer import Finalizer

Expand Down Expand Up @@ -56,27 +54,11 @@ def is_any_thread_alive(threads):

dbms.daemon = False

# dbmr = DBManagerResult(
# starting_point=int(BLOCK_ID_START),
# user=DB_USER,
# password=DB_PASSWORD,
# database=DB_DATABASE,
# host=DB_HOST,
# chain_table=CHAIN_TABLE_NAME,
# )

# dbmr.daemon = True

finalizer = Finalizer(contract, lock)
finalizer.daemon = True

dbms.start()
finalizer.start()

# dbmr.start()

dbms.join()
finalizer.join()

# while is_any_thread_alive([finalizer, dbms]):
# time.sleep(0.1)

0 comments on commit 93cf97b

Please sign in to comment.