Remove commented code for debugging

This commit is contained in:
Mark Veidemanis 2022-09-21 10:02:05 +01:00
parent cf4aa45663
commit d6d19625f3
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 14 additions and 14 deletions

12
db.py
View File

@ -62,12 +62,12 @@ async def store_kafka_batch(data):
KAFKA_TOPIC = index
# if key in schema:
# if isinstance(value, int):
# if schema[key].startswith("string") or schema[key].startswith(
# "text"
# ):
# msg[key] = str(value)
# if key in schema:
# if isinstance(value, int):
# if schema[key].startswith("string") or schema[key].startswith(
# "text"
# ):
# msg[key] = str(value)
body = orjson.dumps(msg)
if "ts" not in msg:
raise Exception("No TS in msg")

View File

@ -16,13 +16,13 @@ if not token:
async def main(loop):
# log.info("Starting Discord handler.")
# client = DiscordClient()
# loop.create_task(client.start(token))
log.info("Starting Discord handler.")
client = DiscordClient()
loop.create_task(client.start(token))
# log.info("Starting 4chan handler.")
# chan = Chan4()
# loop.create_task(chan.run())
log.info("Starting 4chan handler.")
chan = Chan4()
loop.create_task(chan.run())
log.info("Starting ingest handler.")
ingest = Ingest()

View File

@ -9,8 +9,8 @@ from processing import process
SOURCES = ["4ch", "irc", "dis"]
# DEBUG CODE REMOVE ME
SOURCES.remove("4ch")
SOURCES.remove("dis")
# SOURCES.remove("4ch")
# SOURCES.remove("dis")
# DEBUG CODE REMOVE ME
KEYPREFIX = "queue."